From 675bd01a13e93d9d1ca6b03c5427c14d142af1fd Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 4 May 2023 13:10:38 +0200 Subject: [PATCH] mwan3: reset score to up+down on connected Set the score value to the maximum value when the connected function is called. The same happens with a disconnected event, the score value is there set to zero. Suggested-by: Anna Tikhomirova Suggested-by: Maxim Mikityanskiy Signed-off-by: Florian Eckert (cherry picked from commit 5f0461be8b149aeb5732481d38c9d69650996f8c) --- net/mwan3/files/usr/sbin/mwan3track | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index c1a455b2e8..162bdbb7d5 100755 --- a/net/mwan3/files/usr/sbin/mwan3track +++ b/net/mwan3/files/usr/sbin/mwan3track @@ -128,6 +128,7 @@ connected() { echo "online" > $MWAN3TRACK_STATUS_DIR/$INTERFACE/STATUS echo "0" > $MWAN3TRACK_STATUS_DIR/$INTERFACE/OFFLINE get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/ONLINE + score=$((down+up)) host_up_count=0 lost=0 turn=0 -- 2.30.2