mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 01:49:28 +00:00
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;
}
This commit is contained in:
parent
63ed093340
commit
98585afe1c
3 changed files with 17 additions and 2 deletions
11
global-wait
Normal file
11
global-wait
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue