netifd: start wifi at boot
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Nov 2011 20:02:52 +0000 (20:02 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Nov 2011 20:02:52 +0000 (20:02 +0000)
SVN-Revision: 28738

package/netifd/files/etc/init.d/network

index d7d87350efd53897db5b968f3ce6f5438084f3d2..455bf411b16ecc9dd03ffc2506ca90d4d6ad0769 100755 (executable)
@@ -9,6 +9,10 @@ start() {
        setup_switch
 
        ubus call network reload
+
+       grep -qs config /etc/config/wireless && {
+               /sbin/wifi up
+       }
 }
 
 restart() {