[backfire] add /etc/openwrt_release & /etc/openwrt_version files
[openwrt-10.03/.git] / package / base-files / files / etc / init.d / network
index 2a116664e4c58f8b69faf847d5c6cef2e9cdf6c1..3587c24aaa87e50cd46ab158f39c9e2f99d5e6c9 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright (C) 2006 OpenWrt.org
 
 START=40
-STOP=40
+STOP=90
 
 boot() {
        setup_switch() { return 0; }
@@ -15,11 +15,10 @@ boot() {
 }
 
 start() {
-       ifup -a
-       /sbin/wifi up
-}
-
-restart() {
+       setup_switch() { return 0; }
+       
+       include /lib/network
+       setup_switch
        ifup -a
        /sbin/wifi up
 }
@@ -27,3 +26,7 @@ restart() {
 stop() {
        ifdown -a
 }
+
+restart() {
+       start
+}