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>
This commit is contained in:
Florian Eckert 2016-07-22 11:33:08 +02:00 committed by John Crispin
parent 686617ae39
commit 15867deac8

View file

@ -31,11 +31,7 @@ proto_qmi_setup() {
ipv4=1 ipv4=1
if [ "$ipv6" = 0 ]; then [ "$ipv6" = 1 ] || ipv6=""
ipv6=""
else
ipv6=1
fi
[ -n "$ctl_device" ] && device=$ctl_device [ -n "$ctl_device" ] && device=$ctl_device