1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-16 09:56:16 +02:00
openwrt-xburst/package/netifd/files/etc/init.d/network
nbd 6a7cd57cdb netifd: start wifi at boot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28738 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-03 20:02:52 +00:00

25 lines
263 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=40
STOP=90
start() {
setup_switch() { return 0; }
include /lib/network
setup_switch
ubus call network reload
grep -qs config /etc/config/wireless && {
/sbin/wifi up
}
}
restart() {
start
}
stop() {
/sbin/ifdown -a
}