uqmi: fix option ipv6
authorFlorian Eckert <Eckert.Florian@googlemail.com>
Fri, 22 Jul 2016 09:33:08 +0000 (11:33 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 26 Jul 2016 06:39:36 +0000 (08:39 +0200)
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>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index 48864bea4b0d976f2a2a12bc06ec911f99e4664a..6dcc2266933067112a81b41f2639a39e180ce9d0 100755 (executable)
@@ -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