mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: add $WaitDefaultRouteReachable
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
:global SendTelegram;
|
||||
:global TimeIsSync;
|
||||
:global UrlEncode;
|
||||
:global WaitDefaultRouteReachable;
|
||||
:global WaitForFile;
|
||||
:global WaitTimeSync;
|
||||
|
||||
@@ -694,6 +695,15 @@
|
||||
: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
|
||||
:set WaitForFile do={
|
||||
:global CleanFilePath;
|
||||
|
Reference in New Issue
Block a user