From 185fe2c73035b66b2c8e0048eedca47fd438e3e6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 15 Nov 2021 22:17:43 +0100 Subject: reintroduce global-wait --- global-wait | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 global-wait (limited to 'global-wait') diff --git a/global-wait b/global-wait new file mode 100644 index 0000000..c601f69 --- /dev/null +++ b/global-wait @@ -0,0 +1,13 @@ +#!rsc by RouterOS +# RouterOS script: global-wait +# Copyright (c) 2020-2021 Christian Hesse +# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md +# +# provides: backup-script +# +# wait for global-functions to finish +# https://git.eworm.de/cgit/routeros-scripts/about/doc/global-wait.md + +:local 0 "global-wait"; +:global GlobalFunctionsReady; +:while ($GlobalFunctionsReady != true) do={ :delay 500ms; } -- cgit v1.2.3-54-g00ecf