aboutsummaryrefslogtreecommitdiffstats
path: root/global-wait.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-11-15 21:31:18 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-01-30 00:52:21 +0100
commit8afbd5bff54be4f9a7f018589e952893c466e4b5 (patch)
tree2bf7de33873c758854f997c3988d2ae1898d81e5 /global-wait.rsc
parent4b791b7769c2e2949a38ba1b1d4ee34c9e97a3e8 (diff)
global-wait: use :jobname to get script name
Diffstat (limited to 'global-wait.rsc')
-rw-r--r--global-wait.rsc4
1 files changed, 3 insertions, 1 deletions
diff --git a/global-wait.rsc b/global-wait.rsc
index 448643c..9564a12 100644
--- a/global-wait.rsc
+++ b/global-wait.rsc
@@ -3,9 +3,11 @@
# Copyright (c) 2020-2024 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# wait for global-functions to finish
# https://git.eworm.de/cgit/routeros-scripts/about/doc/global-wait.md
-:local 0 "global-wait";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }