aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions10
1 files changed, 10 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index d7ee6b8..21e89af 100644
--- a/global-functions
+++ b/global-functions
@@ -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;