From: Florian Eckert Date: Fri, 22 Jul 2016 09:33:08 +0000 (+0200) Subject: uqmi: fix option ipv6 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=15867deac8c9fd571e01532db03db08b515a3b42;p=openwrt%2Fstaging%2Fluka.git 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 --- 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