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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user