aboutsummaryrefslogtreecommitdiffstats
path: root/package/comgt/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-05-03 19:45:55 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-05-03 19:45:55 +0000
commitb1d9016ac75fad0deacee2cbc91aa1e7d51945e9 (patch)
tree1abee9c13160f591ba25e7d20f48b3eed4ffef9a /package/comgt/files
parent4d8958b11dc0198d6d1c86abd7dae0ce7a4c2e3a (diff)
downloadupstream-b1d9016ac75fad0deacee2cbc91aa1e7d51945e9.tar.gz
upstream-b1d9016ac75fad0deacee2cbc91aa1e7d51945e9.tar.bz2
upstream-b1d9016ac75fad0deacee2cbc91aa1e7d51945e9.zip
[package] comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26810 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/comgt/files')
-rw-r--r--package/comgt/files/3g.usb9
1 files changed, 3 insertions, 6 deletions
diff --git a/package/comgt/files/3g.usb b/package/comgt/files/3g.usb
index ea2fba1509..590cad4177 100644
--- a/package/comgt/files/3g.usb
+++ b/package/comgt/files/3g.usb
@@ -21,12 +21,9 @@ find_3g_iface() {
local dev
config_get dev "$cfg" device
- if [ "${dev##*/}" = "${tty##*/}" ]; then
- [ -z "$(ls /var/lock | grep ${dev##*/})" ] && {
- log "Starting interface $cfg for device ${dev##*/}"
- sleep 1
- /sbin/ifup "$cfg"
- }
+ if [ "${dev##*/}" = "${tty##*/}" ] && [ -z "$(ls /var/lock | grep ${dev##*/})" ]; then
+ log "Starting interface $cfg for device ${dev##*/}"
+ ( sleep 1; /sbin/ifup "$cfg" ) &
fi
}
}