summaryrefslogtreecommitdiff
path: root/package
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
commit29392373f30a0b5109a2a54cc9cbfc8742ee2d4d (patch)
tree51fd20a03f1e39a69c9f0f7f96dfa03bca144194 /package
parent549067e2b4da4a49900e3beabd9a9d409c7fac68 (diff)
downloadmtk-20170518-29392373f30a0b5109a2a54cc9cbfc8742ee2d4d.zip
mtk-20170518-29392373f30a0b5109a2a54cc9cbfc8742ee2d4d.tar.gz
mtk-20170518-29392373f30a0b5109a2a54cc9cbfc8742ee2d4d.tar.bz2
comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks
SVN-Revision: 26810
Diffstat (limited to 'package')
-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 ea2fba1..590cad4 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
}
}