From 9f4cc4778eb9e4afa25356e1f2654193a12cd80e Mon Sep 17 00:00:00 2001 From: fujr Date: Wed, 27 Nov 2024 12:05:36 +0800 Subject: [PATCH] fix mwan3 service --- luci/luci-app-qmodem-mwan/root/etc/init.d/qmodem_mwan | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luci/luci-app-qmodem-mwan/root/etc/init.d/qmodem_mwan b/luci/luci-app-qmodem-mwan/root/etc/init.d/qmodem_mwan index 52b4f02..6d6d7c0 100755 --- a/luci/luci-app-qmodem-mwan/root/etc/init.d/qmodem_mwan +++ b/luci/luci-app-qmodem-mwan/root/etc/init.d/qmodem_mwan @@ -15,7 +15,7 @@ start_service() { logger -t modem_mwan "start qmodem_mwan" config_load qmodem_mwan config_get enable global enable_mwan 0 - if [ "$enable" = "0" ]; then + if [ "$enable" -eq 0 ]; then stop_service fi start_mwan3 ipv4 @@ -23,6 +23,7 @@ start_service() { stop_service() { /usr/share/qmodem/modem_mwan.sh ipv4 stop + /etc/init.d/mwan3 stop } service_triggers() {