From: Jo-Philipp Wich Date: Tue, 3 May 2011 19:45:55 +0000 (+0000) Subject: comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks X-Git-Tag: reboot~16804 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=29392373f30a0b5109a2a54cc9cbfc8742ee2d4d;p=openwrt%2Fstaging%2Fblogic.git comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks SVN-Revision: 26810 --- diff --git a/package/comgt/files/3g.usb b/package/comgt/files/3g.usb index ea2fba150911..590cad4177e8 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 } }