diff options
author | Roman Yeryomin <roman@advem.lv> | 2013-01-15 22:39:09 +0200 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2013-01-15 22:39:09 +0200 |
commit | 96026078c087dd20a99ac3c912ba1407f442ae10 (patch) | |
tree | 45e8c5041ebf7dfb37f3a32c48349c2cdfe931fd /package/network/utils | |
parent | 47f392564263df64fac92194ca2472cabe606ed6 (diff) |
fix network config, hotplug usb script and query3g Makefile for 3g autodetectionmini3g
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'package/network/utils')
-rw-r--r-- | package/network/utils/comgt/files/3g.usb | 6 |
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 - |