aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions10
1 files changed, 10 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 5d059fe..686b1fa 100644
--- a/global-functions
+++ b/global-functions
@@ -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;