mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: add $WaitDNSResolving
This commit is contained in:
@ -42,6 +42,7 @@
|
||||
:global TimeIsSync;
|
||||
:global UrlEncode;
|
||||
:global WaitDefaultRouteReachable;
|
||||
:global WaitDNSResolving;
|
||||
:global WaitForFile;
|
||||
:global WaitTimeSync;
|
||||
|
||||
@ -722,6 +723,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
# wait for DNS to resolve
|
||||
:set WaitDNSResolving do={
|
||||
:global DNSIsResolving;
|
||||
|
||||
:while ([ $DNSIsResolving ] = false) do={
|
||||
:delay 1s;
|
||||
}
|
||||
}
|
||||
|
||||
# wait for file to be available
|
||||
:set WaitForFile do={
|
||||
:global CleanFilePath;
|
||||
|
Reference in New Issue
Block a user