From: Felix Fietkau Date: Sat, 31 May 2014 23:49:23 +0000 (+0000) Subject: netifd: replace the sleep 5 with an ubus wait_for call to speed up init script X-Git-Tag: reboot~7160 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=d866ee2e30ed46980fc51f2e92451755d9cad72a netifd: replace the sleep 5 with an ubus wait_for call to speed up init script Signed-off-by: Felix Fietkau SVN-Revision: 40891 --- 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 }