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

24 lines
245 B
Bash
Executable File

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