openwrtv4/package/netifd/files/etc/init.d/network
Felix Fietkau d4d91df5fe netifd: start wifi at boot
SVN-Revision: 28738
2011-11-03 20:02:52 +00:00

24 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
}