comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks

SVN-Revision: 26810
lede-17.01
Jo-Philipp Wich 2011-05-03 19:45:55 +00:00
parent 549067e2b4
commit 29392373f3
1 changed files with 3 additions and 6 deletions

View File

@ -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
}
}