aboutsummaryrefslogtreecommitdiffstats
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
commit0fab8e45b6cf13568ad666c4c098bb5c12ac8877 (patch)
treedd0ec4ac81859b523e4f4cb21f82031e956e9e6c
parent8b7d0d34dc39be95d79ef94418054768b0e68592 (diff)
downloadmaster-187ad058-0fab8e45b6cf13568ad666c4c098bb5c12ac8877.tar.gz
master-187ad058-0fab8e45b6cf13568ad666c4c098bb5c12ac8877.tar.bz2
master-187ad058-0fab8e45b6cf13568ad666c4c098bb5c12ac8877.zip
netifd: replace the sleep 5 with an ubus wait_for call to speed up init script
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40891 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 db07c1e664..2e22732a9f 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
}