openwrtv3/package/netifd/files/etc/init.d/network
2011-10-21 01:47:49 +00:00

20 lines
200 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
}
restart() {
start
}
stop() {
/sbin/ifdown -a
}