Explorar el Código

netifd: replace the sleep 5 with an ubus wait_for call to speed up init script

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 40891
Felix Fietkau hace 11 años
padre
commit
d866ee2e30
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      package/network/config/netifd/files/etc/init.d/network

+ 1 - 1
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
 }