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
1 changed files with 1 additions and 1 deletions

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={