add ifup -a to boot(), closes #4543 #2781
[openwrt-10.03/.git] / package / base-files / files / etc / init.d / network
index ef415957cc9a1a4595eef29405ed3d4a770f703f..b63ed0b850a939d39980239c8d580aaea94343f2 100755 (executable)
@@ -11,6 +11,7 @@ boot() {
        setup_switch
        [ -s /etc/config/wireless ] || \
                /sbin/wifi detect > /etc/config/wireless
+       ifup -a
        /sbin/wifi up
 }
 
@@ -20,7 +21,10 @@ start() {
 }
 
 restart() {
-       setup_switch()
+       setup_switch() { return 0; }
+       
+       include /lib/network
+       setup_switch
        ifup -a
        /sbin/wifi up
 }