netifd: replace the sleep 5 with an ubus wait_for call to speed up init script
authorFelix Fietkau <nbd@openwrt.org>
Sat, 31 May 2014 23:49:23 +0000 (23:49 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 31 May 2014 23:49:23 +0000 (23:49 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40891

package/network/config/netifd/files/etc/init.d/network

index db07c1e..2e22732 100755 (executable)
@@ -36,7 +36,7 @@ stop_service() {
 }
 
 service_running() {
-       sleep 5
+       ubus -t 30 wait_for network.interface
        /sbin/wifi reload_legacy
 }