packages/net/mwan3/files/etc/init.d/mwan3
Florian Eckert 2cd5442a11 net/mwan3: fix start/stop/restart execution
Move setting global enabled flag from /etc/init.d/mwan3 to mwan3
command. So we could start mwan3 from the cmd mwan3 as well.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-24 10:20:35 +02:00

20 lines
222 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=19
reload() {
/usr/sbin/mwan3 restart
}
boot() {
. /lib/config/uci.sh
uci_toggle_state mwan3 globals enabled "1"
}
start() {
/usr/sbin/mwan3 start
}
stop() {
/usr/sbin/mwan3 stop
}