netifd: bring wifi down before shutting down
authorjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 8 Jun 2013 11:44:12 +0000 (11:44 +0000)
committerjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36883 3c298f89-4303-0410-b956-a3cf2f4a3e73

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
 }