mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks
SVN-Revision: 26810
This commit is contained in:
parent
549067e2b4
commit
29392373f3
@ -21,12 +21,9 @@ find_3g_iface() {
|
|||||||
local dev
|
local dev
|
||||||
config_get dev "$cfg" device
|
config_get dev "$cfg" device
|
||||||
|
|
||||||
if [ "${dev##*/}" = "${tty##*/}" ]; then
|
if [ "${dev##*/}" = "${tty##*/}" ] && [ -z "$(ls /var/lock | grep ${dev##*/})" ]; then
|
||||||
[ -z "$(ls /var/lock | grep ${dev##*/})" ] && {
|
|
||||||
log "Starting interface $cfg for device ${dev##*/}"
|
log "Starting interface $cfg for device ${dev##*/}"
|
||||||
sleep 1
|
( sleep 1; /sbin/ifup "$cfg" ) &
|
||||||
/sbin/ifup "$cfg"
|
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user