netifd: do not stop service on shutdown, only call ifdown
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 24 Jan 2015 13:41:04 +0000 (13:41 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 24 Jan 2015 13:41:04 +0000 (13:41 +0000)
Also add a small delay, like on restart

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44096 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index fbba9ec..542fc08 100755 (executable)
@@ -148,5 +148,5 @@ restart() {
 
 shutdown() {
        ifdown -a
 
 shutdown() {
        ifdown -a
-       stop
+       sleep 1
 }
 }