mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 18:14:27 +02:00
global-functions: add $WaitDefaultRouteReachable
This commit is contained in:
parent
999763a263
commit
b67712cfe4
1 changed files with 10 additions and 0 deletions
|
@ -40,6 +40,7 @@
|
||||||
:global SendTelegram;
|
:global SendTelegram;
|
||||||
:global TimeIsSync;
|
:global TimeIsSync;
|
||||||
:global UrlEncode;
|
:global UrlEncode;
|
||||||
|
:global WaitDefaultRouteReachable;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
:global WaitTimeSync;
|
:global WaitTimeSync;
|
||||||
|
|
||||||
|
@ -694,6 +695,15 @@
|
||||||
:return $Return;
|
:return $Return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# wait for default route to be reachable
|
||||||
|
:set WaitDefaultRouteReachable do={
|
||||||
|
:global DefaultRouteIsReachable;
|
||||||
|
|
||||||
|
:while ([ $DefaultRouteIsReachable ] = false) do={
|
||||||
|
:delay 1s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# wait for file to be available
|
# wait for file to be available
|
||||||
:set WaitForFile do={
|
:set WaitForFile do={
|
||||||
:global CleanFilePath;
|
:global CleanFilePath;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue