summaryrefslogtreecommitdiff
path: root/package/netifd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-11-03 20:02:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-11-03 20:02:52 +0000
commitd4d91df5fe7340f14824c5de815de01416af67f2 (patch)
tree75ddee916db9efce62c69d82904fca52b0ff87cb /package/netifd
parent3ac516569075a1f2f4099ab306f7ec1575e8b111 (diff)
downloadmtk-20170518-d4d91df5fe7340f14824c5de815de01416af67f2.zip
mtk-20170518-d4d91df5fe7340f14824c5de815de01416af67f2.tar.gz
mtk-20170518-d4d91df5fe7340f14824c5de815de01416af67f2.tar.bz2
netifd: start wifi at boot
SVN-Revision: 28738
Diffstat (limited to 'package/netifd')
-rwxr-xr-xpackage/netifd/files/etc/init.d/network4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/netifd/files/etc/init.d/network b/package/netifd/files/etc/init.d/network
index d7d8735..455bf41 100755
--- a/package/netifd/files/etc/init.d/network
+++ b/package/netifd/files/etc/init.d/network
@@ -9,6 +9,10 @@ start() {
setup_switch
ubus call network reload
+
+ grep -qs config /etc/config/wireless && {
+ /sbin/wifi up
+ }
}
restart() {