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 <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2017-08-30 15:26:29 +02:00
parent ec5542ab2b
commit 0c678d39cc
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ main() {
local sleep_time=0 local sleep_time=0
local turn=0 local turn=0
if [ "$STATUS" = "offline" ]; then if [ "$STATUS" = "unknown" ]; then
echo "offline" > /var/run/mwan3track/$1/STATUS echo "unknown" > /var/run/mwan3track/$1/STATUS
score=0 score=0
else else
echo "online" > /var/run/mwan3track/$1/STATUS echo "online" > /var/run/mwan3track/$1/STATUS