summaryrefslogtreecommitdiff
path: root/package/network/config/netifd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-31 23:49:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-31 23:49:23 +0000
commitd866ee2e30ed46980fc51f2e92451755d9cad72a (patch)
tree86f09c3904ee80b6faf9dd5b3dc9df2fe9eaba07 /package/network/config/netifd
parent0e9e8a141eb4139d37ba24b791965d6c2e5d04c2 (diff)
downloadmtk-20170518-d866ee2e30ed46980fc51f2e92451755d9cad72a.zip
mtk-20170518-d866ee2e30ed46980fc51f2e92451755d9cad72a.tar.gz
mtk-20170518-d866ee2e30ed46980fc51f2e92451755d9cad72a.tar.bz2
netifd: replace the sleep 5 with an ubus wait_for call to speed up init script
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40891
Diffstat (limited to 'package/network/config/netifd')
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network
index db07c1e..2e22732 100755
--- a/package/network/config/netifd/files/etc/init.d/network
+++ b/package/network/config/netifd/files/etc/init.d/network
@@ -36,7 +36,7 @@ stop_service() {
}
service_running() {
- sleep 5
+ ubus -t 30 wait_for network.interface
/sbin/wifi reload_legacy
}