routeros-scripts/global-wait
Christian Hesse 98585afe1c 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;
}
2020-03-12 08:40:29 +01:00

11 lines
224 B
Text

#!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;
}