You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/package/netifd/files/etc/init.d/network

25 lines
263 B
Bash

#!/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
}