summaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
Diffstat (limited to 'package/network')
-rw-r--r--package/network/utils/comgt/files/3g.usb6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/utils/comgt/files/3g.usb b/package/network/utils/comgt/files/3g.usb
index fd6837e65..0a443f602 100644
--- a/package/network/utils/comgt/files/3g.usb
+++ b/package/network/utils/comgt/files/3g.usb
@@ -24,10 +24,12 @@ find_3g_iface() {
}
case "$DEVICENAME" in
- tty*)
+ ttyUSB0)
[ -e "/dev/$DEVICENAME" ] || [ "$ACTION" = remove ] || exit 0
+ luci-3g-detect detect
+ query3g_setup
config_load network
config_foreach find_3g_iface interface "/dev/$DEVICENAME"
+ ifdown wan && ifup wan
;;
esac
-