aboutsummaryrefslogtreecommitdiffstats
path: root/global-wait
diff options
context:
space:
mode:
Diffstat (limited to 'global-wait')
-rw-r--r--global-wait11
1 files changed, 11 insertions, 0 deletions
diff --git a/global-wait b/global-wait
new file mode 100644
index 0000000..29d634d
--- /dev/null
+++ b/global-wait
@@ -0,0 +1,11 @@
+#!rsc
+# RouterOS script: global-wait
+# Copyright (c) 2020 Christian Hesse <mail@eworm.de>
+#
+# wait for global-functions to finish
+
+:global GlobalFunctionsReady;
+
+:while ($GlobalFunctionsReady != true) do={
+ :delay 500ms;
+}