summaryrefslogtreecommitdiff
path: root/package/network/utils/comgt
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-07-08 14:26:04 +0000
committerJohn Crispin <john@openwrt.org>2015-07-08 14:26:04 +0000
commit657300d4184a97e2c433ca259d973a04a5680ac0 (patch)
treef433aa63d4dbeac1c64a04551e61ec1fb57ccda8 /package/network/utils/comgt
parentd65916047b44d6d157d88d15e8e3d92555c5e6f8 (diff)
downloadmtk-20170518-657300d4184a97e2c433ca259d973a04a5680ac0.zip
mtk-20170518-657300d4184a97e2c433ca259d973a04a5680ac0.tar.gz
mtk-20170518-657300d4184a97e2c433ca259d973a04a5680ac0.tar.bz2
comgt: make ncm proto work via wwan proto
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46272
Diffstat (limited to 'package/network/utils/comgt')
-rw-r--r--package/network/utils/comgt/files/ncm.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/utils/comgt/files/ncm.sh b/package/network/utils/comgt/files/ncm.sh
index 6546691..1f0d0db 100644
--- a/package/network/utils/comgt/files/ncm.sh
+++ b/package/network/utils/comgt/files/ncm.sh
@@ -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