From 98585afe1cc068203e5d713eb9965c930ac762de Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 12 Mar 2020 08:40:29 +0100 Subject: add script 'global-wait' Run this in schedulers that fire on startup without interval. Schedulers should look something like this: / system scheduler { add name=global-scripts on-event="/ system script { run global-config; run global-config-overlay; run global-functions; }" start-time=startup; add name=bridge-port-to-default on-event="/ system script { run global-wait; run bridge-port-to-default; }" start-time=startup; } --- global-wait | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 global-wait (limited to 'global-wait') 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 +# +# wait for global-functions to finish + +:global GlobalFunctionsReady; + +:while ($GlobalFunctionsReady != true) do={ + :delay 500ms; +} -- cgit v1.2.3-54-g00ecf