mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-02 01:04:55 +02:00
global-functions: add $WaitDNSResolving
This commit is contained in:
parent
b7172b69ce
commit
4166bf91c3
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue