when rebooting, stop the network interfaces last (just before umount) to allow servic...
[openwrt-10.03/.git] / package / base-files / files / etc / init.d / network
index 5255651490d4f9b69e32a18414e94567e4066024..74478c7317ca9c37a7c8f95559630a884a865f40 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright (C) 2006 OpenWrt.org
 
 START=40
-STOP=40
+STOP=90
 
 boot() {
        setup_switch() { return 0; }
@@ -20,6 +20,9 @@ start() {
 }
 
 restart() {
+       setup_switch() { return 0; }
+       
+       include /lib/network
        setup_switch
        ifup -a
        /sbin/wifi up