summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 48864be..6dcc226 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