aboutsummaryrefslogtreecommitdiffstats
path: root/package/comgt/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-04 20:31:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-04 20:31:53 +0000
commitae39d6a370ebb0171bd666a22159b70a2e921877 (patch)
treed01574d8952ea12da4e829c3c811e57382a1be17 /package/comgt/files
parent7c5ca4e5dedaaf8480fdd6a8eb1ea6a0e89d0229 (diff)
downloadupstream-ae39d6a370ebb0171bd666a22159b70a2e921877.tar.gz
upstream-ae39d6a370ebb0171bd666a22159b70a2e921877.tar.bz2
upstream-ae39d6a370ebb0171bd666a22159b70a2e921877.zip
nuke mdev and replace it with hotplug2 :)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6512 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/comgt/files')
-rw-r--r--package/comgt/files/3g.button3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/comgt/files/3g.button b/package/comgt/files/3g.button
index 54997d870a..57f4286073 100644
--- a/package/comgt/files/3g.button
+++ b/package/comgt/files/3g.button
@@ -13,6 +13,7 @@ button_action() {(
)}
[ "$ACTION" = "released" -a "$BUTTON" = "3g" ] && {
+ HOTPLUG="$(cat /proc/sys/kernel/hotplug)"
(echo /bin/true > /proc/sys/kernel/hotplug)
include /lib/network
@@ -31,5 +32,5 @@ button_action() {(
}
config_load network
- (echo /sbin/hotplug > /proc/sys/kernel/hotplug)
+ (echo $HOTPLUG > /proc/sys/kernel/hotplug)
} &