summaryrefslogtreecommitdiffstats
path: root/package/comgt/files-old/3g.button
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-29 12:59:11 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-29 12:59:11 +0000
commit149e440f17633cb3d9343afbee99ec369b5de445 (patch)
tree08eed2d6eee8f0f1f1715fe6501f7390ed5c8573 /package/comgt/files-old/3g.button
parenteb628c8fbc0e53a075a01acd8957383ee29be9f2 (diff)
comgt: remove old network scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31982 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/comgt/files-old/3g.button')
-rw-r--r--package/comgt/files-old/3g.button36
1 files changed, 0 insertions, 36 deletions
diff --git a/package/comgt/files-old/3g.button b/package/comgt/files-old/3g.button
deleted file mode 100644
index 57f428607..000000000
--- a/package/comgt/files-old/3g.button
+++ /dev/null
@@ -1,36 +0,0 @@
-button_action() {(
- # use led for keeping track of the state
- case "$(cat /proc/diag/led/3g_green)" in
- 1)
- ifdown "$1"
- ifup wan
- ;;
- 0)
- ifdown wan
- ifup "$1"
- ;;
- esac
-)}
-
-[ "$ACTION" = "released" -a "$BUTTON" = "3g" ] && {
- HOTPLUG="$(cat /proc/sys/kernel/hotplug)"
- (echo /bin/true > /proc/sys/kernel/hotplug)
-
- include /lib/network
- scan_interfaces
- config_cb() {
- config_get TYPE "$CONFIG_SECTION" TYPE
- case "$TYPE" in
- interface)
- config_get proto "$CONFIG_SECTION" proto
- config_get button "$CONFIG_SECTION" button
- case "$button" in
- 1|on|enabled) [ "$proto" = "3g" ] && button_action "$CONFIG_SECTION";;
- esac
- ;;
- esac
- }
- config_load network
-
- (echo $HOTPLUG > /proc/sys/kernel/hotplug)
-} &