summaryrefslogtreecommitdiff
path: root/package/comgt/files/3g.button
diff options
context:
space:
mode:
Diffstat (limited to 'package/comgt/files/3g.button')
-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)
} &