aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-10-02 19:37:25 +0000
committerSteven Barth <steven@midlink.org>2014-10-02 19:37:25 +0000
commit3545c2dce525e90f05c0db9ff457460c3fe09004 (patch)
tree983a392c3af471f93ab8ce09bceeabecaedc4e16 /package/network
parent55316cc6724ed43456aa043a580c0d7460f4ab8f (diff)
downloadupstream-3545c2dce525e90f05c0db9ff457460c3fe09004.tar.gz
upstream-3545c2dce525e90f05c0db9ff457460c3fe09004.tar.bz2
upstream-3545c2dce525e90f05c0db9ff457460c3fe09004.zip
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 <m.stam@fugro.nl> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42745 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/network3
1 files changed, 2 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 1d8a5b34ef..fbba9ecb1c 100755
--- a/package/network/config/netifd/files/etc/init.d/network
+++ b/package/network/config/netifd/files/etc/init.d/network
@@ -32,8 +32,9 @@ reload_service() {
/sbin/wifi reload_legacy
}
-stop_service() {
+stop() {
/sbin/wifi down
+ procd_kill network ''
}
service_running() {