aboutsummaryrefslogtreecommitdiffstats
path: root/lease-script.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-03-22 10:04:50 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-03-22 10:13:24 +0100
commit3396aefac9bd8c6d16112282b6f76be64deafa07 (patch)
treeeeaf78cbaade6d6a5a344757981f0321f7568317 /lease-script.rsc
parent58a42f4ece0c73471a8c3ce6a6c87f9f3f08adf1 (diff)
lease-script: add script name in order
This makes sure scripts with the same order can not conflict.
Diffstat (limited to 'lease-script.rsc')
-rw-r--r--lease-script.rsc2
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={