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
commita44c286fdb6478992a0d99cf886fbdb6a67ea301 (patch)
tree1ce5c0323b48da12b74cfcfb750a7f7a5307c680 /package/comgt/files
parent0a056c9743749762a5d93463ecfd6f82137884db (diff)
downloadupstream-a44c286fdb6478992a0d99cf886fbdb6a67ea301.tar.gz
upstream-a44c286fdb6478992a0d99cf886fbdb6a67ea301.tar.bz2
upstream-a44c286fdb6478992a0d99cf886fbdb6a67ea301.zip
nuke mdev and replace it with hotplug2 :)
SVN-Revision: 6512
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)
} &