comgt: make ncm proto work via wwan proto
authorJohn Crispin <john@openwrt.org>
Wed, 8 Jul 2015 14:26:04 +0000 (14:26 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 8 Jul 2015 14:26:04 +0000 (14:26 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 46272

package/network/utils/comgt/files/ncm.sh

index 6546691b1aafeacbfa345dd983c3f4fad3691639..1f0d0db2e7081a6992fc2fb17db41e5bcc0363a2 100644 (file)
@@ -27,6 +27,8 @@ proto_ncm_setup() {
        local device apn auth username password pincode delay mode
        json_get_vars device apn auth username password pincode delay mode
 
+       [ -n "$ctl_device" ] && device=$ctl_device
+
        [ -n "$device" ] || {
                echo "No control device specified"
                proto_notify_error "$interface" NO_DEVICE