mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user