1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

lease-script: add script name in order

This makes sure scripts with the same order can not conflict.
This commit is contained in:
Christian Hesse
2023-03-22 10:04:50 +01:00
parent 58a42f4ece
commit 3396aefac9

View File

@@ -38,7 +38,7 @@ $ScriptLock $0 false 10;
:local ScriptVal [ /system/script/get $Script ];
:local Store [ $ParseKeyValueStore [ $Grep ($ScriptVal->"source") ("\23 provides: lease-script, ") ] ];
:set ($RunOrder->($Store->"order")) ($ScriptVal->"name");
:set ($RunOrder->($Store->"order" . "-" . $ScriptVal->"name")) ($ScriptVal->"name");
}
:foreach Order,Script in=$RunOrder do={