netifd: bring wifi down before shutting down
authorJonas Gorski <jogo@openwrt.org>
Sat, 8 Jun 2013 11:44:12 +0000 (11:44 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sat, 8 Jun 2013 11:44:12 +0000 (11:44 +0000)
works around wifiX references not being freed on network restart.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36883

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

index 429f33dd928434e87bf785d77c3da9286d4b1bf4..75586452f0583d0a1c0c4bbb19044358a7dd3c98 100755 (executable)
@@ -37,6 +37,7 @@ shutdown() {
 }
 
 stop() {
+       /sbin/wifi down
        service_stop /sbin/netifd
 }