mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-26 05:44:39 +02:00
lease-script: add script name in order
This makes sure scripts with the same order can not conflict.
This commit is contained in:
parent
58a42f4ece
commit
3396aefac9
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ $ScriptLock $0 false 10;
|
||||||
:local ScriptVal [ /system/script/get $Script ];
|
:local ScriptVal [ /system/script/get $Script ];
|
||||||
:local Store [ $ParseKeyValueStore [ $Grep ($ScriptVal->"source") ("\23 provides: lease-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={
|
:foreach Order,Script in=$RunOrder do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue