[source] uqmi: fix option ipv6
LEDE Commits
lede-commits at lists.infradead.org
Mon Aug 1 03:11:07 PDT 2016
blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=15867deac8c9fd571e01532db03db08b515a3b42
commit 15867deac8c9fd571e01532db03db08b515a3b42
Author: Florian Eckert <Eckert.Florian at googlemail.com>
AuthorDate: Fri Jul 22 11:33:08 2016 +0200
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 at googlemail.com>
---
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 6 +-----
1 file changed, 1 insertion(+), 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
More information about the lede-commits
mailing list