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>
20 lines
222 B
Bash
Executable file
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
|
|
}
|