Author: nbd
Date: 2015-09-21 19:40:59 +0200 (Mon, 21 Sep 2015)
New Revision: 47014

Modified:
   trunk/package/network/utils/uqmi/Makefile
   trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
Log:
uqmi: Add qmi.sh executable bit and fix option dhcp

Using protocol qmi does not work since qmi.sh is not executable.
Setting option dhcp explicitely to 0 actually enables it.
This patch fixes both problems.

Signed-off-by: Matti Laakso <[email protected]>

Modified: trunk/package/network/utils/uqmi/Makefile
===================================================================
--- trunk/package/network/utils/uqmi/Makefile   2015-09-21 17:40:52 UTC (rev 
47013)
+++ trunk/package/network/utils/uqmi/Makefile   2015-09-21 17:40:59 UTC (rev 
47014)
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uqmi
-PKG_VERSION:=2015-08-13
+PKG_VERSION:=2015-09-17
 PKG_RELEASE=$(PKG_SOURCE_VERSION)
 
 PKG_SOURCE_PROTO:=git

Modified: trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
===================================================================
--- trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh      
2015-09-21 17:40:52 UTC (rev 47013)
+++ trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh      
2015-09-21 17:40:59 UTC (rev 47014)
@@ -140,7 +140,7 @@
                return 1
        }
 
-       if [ -z "$dhcp" ]; then
+       if [ -z "$dhcp" -o "$dhcp" = 0 ]; then
                echo "Setting up $ifname"
                [ -n "$ipv4" ] && {
                        json_load "$(uqmi -s -d $device --set-client-id 
wds,$cid_4 --get-current-settings)"


Property changes on: 
trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to