1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55: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:
Christian Hesse
2018-10-25 12:50:56 +02:00
parent b239853303
commit 6b089a1425

View File

@@ -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);