mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-11 21:00:14 +02:00
[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
This commit is contained in:
parent
fc910db123
commit
a25fe1d267
@ -21,12 +21,9 @@ find_3g_iface() {
|
||||
local dev
|
||||
config_get dev "$cfg" device
|
||||
|
||||
if [ "${dev##*/}" = "${tty##*/}" ]; then
|
||||
[ -z "$(ls /var/lock | grep ${dev##*/})" ] && {
|
||||
if [ "${dev##*/}" = "${tty##*/}" ] && [ -z "$(ls /var/lock | grep ${dev##*/})" ]; then
|
||||
log "Starting interface $cfg for device ${dev##*/}"
|
||||
sleep 1
|
||||
/sbin/ifup "$cfg"
|
||||
}
|
||||
( sleep 1; /sbin/ifup "$cfg" ) &
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user