From c92d47953ec7190ed460cfe49ffd28d4b59aafc0 Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Fri, 1 May 2020 15:09:00 +0200 Subject: [PATCH] testnet: control broadband led if wan led is not available WAN and Broadband LED will be handled by ruleng rules when ubus switch events are ready --- netmode/files/sbin/testnet | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/netmode/files/sbin/testnet b/netmode/files/sbin/testnet index 370d6f8ef..ab322893a 100755 --- a/netmode/files/sbin/testnet +++ b/netmode/files/sbin/testnet @@ -32,9 +32,9 @@ test_connection() { uplink_test() { uplink_phy_connected if [ $? -eq 0 ]; then - ubus call led.wan set '{"state" : "ok"}' + ubus call led.wan set '{"state" : "ok"}' || ubus call led.broadband set '{"state" : "ok"}' else - ubus call led.wan set '{"state" : "off"}' + ubus call led.wan set '{"state" : "off"}' || ubus call led.broadband set '{"state" : "off"}' fi } @@ -70,8 +70,6 @@ connectivity_test() { [ "$CURSTATUS" == "$LASTSTATUS" ] || ubus send internet '{"status" : "offline"}' LASTSTATUS=0 fi - - iptv_test } if [ "$1" == "once" ]; then