aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/uqmi
diff options
context:
space:
mode:
authorFlorian Eckert <Eckert.Florian@googlemail.com>2016-07-22 11:33:08 +0200
committerJohn Crispin <john@phrozen.org>2016-07-26 08:39:36 +0200
commit15867deac8c9fd571e01532db03db08b515a3b42 (patch)
tree88481ff3b0d7f98843799fb2803a5e72cc15c4be /package/network/utils/uqmi
parent686617ae398a012d2d678eb11fef3c9a6bec61cd (diff)
downloadupstream-15867deac8c9fd571e01532db03db08b515a3b42.tar.gz
upstream-15867deac8c9fd571e01532db03db08b515a3b42.tar.bz2
upstream-15867deac8c9fd571e01532db03db08b515a3b42.zip
uqmi: fix option ipv6
If option ist not set then ipv6 is still enabled on this Interface. Check if variable is zero will fix this issue. Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Diffstat (limited to 'package/network/utils/uqmi')
-rwxr-xr-xpackage/network/utils/uqmi/files/lib/netifd/proto/qmi.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index 48864bea4b..6dcc226693 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -31,11 +31,7 @@ proto_qmi_setup() {
ipv4=1
- if [ "$ipv6" = 0 ]; then
- ipv6=""
- else
- ipv6=1
- fi
+ [ "$ipv6" = 1 ] || ipv6=""
[ -n "$ctl_device" ] && device=$ctl_device