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

19 lines
286 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=20
PIDFILE=/var/run/netifd.pid
start() {
stop
start-stop-daemon -S -b -m -p $PIDFILE -x /sbin/netifd
}
reload() {
ubus call network reload
}
stop() {
[ -e "$PIDFILE" ] || return
start-stop-daemon -K -p $PIDFILE -x /sbin/netifd
rm -f "$PIDFILE"
}