mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 10:14:32 +04:00
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>
21 lines
222 B
Bash
Executable File
21 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
|
|
}
|