diff options
author | Christian Hesse <mail@eworm.de> | 2023-03-22 10:04:50 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-03-22 10:13:24 +0100 |
commit | 3396aefac9bd8c6d16112282b6f76be64deafa07 (patch) | |
tree | eeaf78cbaade6d6a5a344757981f0321f7568317 | |
parent | 58a42f4ece0c73471a8c3ce6a6c87f9f3f08adf1 (diff) |
lease-script: add script name in order
This makes sure scripts with the same order can not conflict.
-rw-r--r-- | lease-script.rsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lease-script.rsc b/lease-script.rsc index cc56a1f..9b43e18 100644 --- a/lease-script.rsc +++ b/lease-script.rsc @@ -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={ |