summaryrefslogtreecommitdiff
path: root/package/network/config
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2014-10-02 19:37:25 +0000
committerSteven Barth <cyrus@openwrt.org>2014-10-02 19:37:25 +0000
commit73179a188c6eed4db08ed5f9e109fae17db6575e (patch)
tree8613959825d73de4ee9726ed8e28545eced9fd11 /package/network/config
parent1c166058df1392987c831d810cdd88301e06f9c9 (diff)
downloadmtk-20170518-73179a188c6eed4db08ed5f9e109fae17db6575e.zip
mtk-20170518-73179a188c6eed4db08ed5f9e109fae17db6575e.tar.gz
mtk-20170518-73179a188c6eed4db08ed5f9e109fae17db6575e.tar.bz2
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> SVN-Revision: 42745
Diffstat (limited to 'package/network/config')
-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 1d8a5b3..fbba9ec 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() {