From 0c678d39cc336c05693001ab912a4b2a343d2e80 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 30 Aug 2017 15:26:29 +0200 Subject: [PATCH] net/mwan3: if initial_state is offline set status to unknown To show that the status of the interface is neither offline nor online set the status to unknown. Signed-off-by: Florian Eckert --- net/mwan3/files/usr/sbin/mwan3track | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index 0e1c4f2b8..e94ada815 100755 --- a/net/mwan3/files/usr/sbin/mwan3track +++ b/net/mwan3/files/usr/sbin/mwan3track @@ -81,8 +81,8 @@ main() { local sleep_time=0 local turn=0 - if [ "$STATUS" = "offline" ]; then - echo "offline" > /var/run/mwan3track/$1/STATUS + if [ "$STATUS" = "unknown" ]; then + echo "unknown" > /var/run/mwan3track/$1/STATUS score=0 else echo "online" > /var/run/mwan3track/$1/STATUS