reintroduce global-wait

This commit is contained in:
Christian Hesse 2021-11-15 22:17:43 +01:00
parent 3b997d3087
commit 185fe2c730
9 changed files with 65 additions and 6 deletions

13
global-wait Normal file
View file

@ -0,0 +1,13 @@
#!rsc by RouterOS
# RouterOS script: global-wait
# Copyright (c) 2020-2021 Christian Hesse <mail@eworm.de>
# 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; }