mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
bridge-port-to-default: delay for global-config
All scripts scheduled with "start-time=startup interval=0" start simultaneously, thus racing on global variables. So delay for a second and give global-config time to finish.
This commit is contained in:
parent
b239853303
commit
6b089a1425
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@
|
|||
#
|
||||
# reset bridge ports to default bridge
|
||||
|
||||
# delay for global-config
|
||||
:delay 1s;
|
||||
|
||||
:global "bridge-port-to";
|
||||
|
||||
:local "len" ([ :len $"bridge-port-to" ] + 1);
|
||||
|
|
Loading…
Reference in a new issue