netifd: bring up all interfaces on /etc/init.d/network restart
[openwrt/staging/chunkeey.git] / package / netifd / files / etc / init.d / network
index d7d87350efd53897db5b968f3ce6f5438084f3d2..9ef2506dea533c7d819befd26a8fa70b9a39055c 100755 (executable)
@@ -8,7 +8,10 @@ start() {
        include /lib/network
        setup_switch
 
-       ubus call network reload
+       ifup -a
+       grep -qs config /etc/config/wireless && {
+               /sbin/wifi up
+       }
 }
 
 restart() {