This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:global timeoutLTE 60 | |
:local i 0 | |
:local isLTEinit false | |
:while ($i<$timeoutLTE) do={ | |
:foreach n in=[/interface lte find] do={:set $isLTEinit true} | |
:if ($isLTEinit=true) do={ | |
:set $i $timeoutLTE | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:log error "(Netwatch) Internet disconnesso"; | |
:if ([/interface lte get [find name="lte1"] running]=true) do={ | |
:log info "(Netwatch) lte1 disabilitata"; | |
/interface lte disable lte1; | |
:log info "(Netwatch) Attendo 5 secondi..."; | |
:delay 5000ms; | |
:log info "(Netwatch) lte1 abilitata"; | |
/interface lte enable lte1; | |
} |