add ifup -a to boot(), closes #4543 #2781
[openwrt-10.03/.git] / package / base-files / files / etc / init.d / network
index 6b1f13c2faee63815c3609a2184de66026a784b0..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,6 +21,8 @@ start() {
 }
 
 restart() {
+       setup_switch() { return 0; }
+       
        include /lib/network
        setup_switch
        ifup -a