summaryrefslogtreecommitdiff
path: root/package/comgt/files/3g.usb
diff options
context:
space:
mode:
Diffstat (limited to 'package/comgt/files/3g.usb')
-rw-r--r--package/comgt/files/3g.usb9
1 files changed, 3 insertions, 6 deletions
diff --git a/package/comgt/files/3g.usb b/package/comgt/files/3g.usb
index ea2fba1509..590cad4177 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
}
}