projects
/
openwrt
/
staging
/
lynxis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
549067e
)
comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 3 May 2011 19:45:55 +0000
(19:45 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 3 May 2011 19:45:55 +0000
(19:45 +0000)
SVN-Revision: 26810
package/comgt/files/3g.usb
patch
|
blob
|
history
diff --git
a/package/comgt/files/3g.usb
b/package/comgt/files/3g.usb
index ea2fba1509112cf8cec893e20bfae06646e3b3d9..590cad4177e8c3fc254892dde1bf82f791c25056 100644
(file)
--- 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
}
}