Author: cyrus
Date: 2014-10-02 21:37:25 +0200 (Thu, 02 Oct 2014)
New Revision: 42745

Modified:
   trunk/package/network/config/netifd/files/etc/init.d/network
Log:
netifd: fix an error message during network shutdown

When 'wifi down' is called by /etc/init.d/network, it is run from
stop_service( ). This function is in turn invoked from stop( ).
stop( ) messes up the order by first procd_kill-ing the network
settings, then calling wifi to down the wifi networking
interfaces. By redefining stop( ) instead, the proper order is
restored.

Signed-off-by: Michel Stam <[email protected]>

Modified: trunk/package/network/config/netifd/files/etc/init.d/network
===================================================================
--- trunk/package/network/config/netifd/files/etc/init.d/network        
2014-10-02 19:37:17 UTC (rev 42744)
+++ trunk/package/network/config/netifd/files/etc/init.d/network        
2014-10-02 19:37:25 UTC (rev 42745)
@@ -32,8 +32,9 @@
        /sbin/wifi reload_legacy
 }
 
-stop_service() {
+stop() {
        /sbin/wifi down
+       procd_kill network ''
 }
 
 service_running() {
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to