From 3396aefac9bd8c6d16112282b6f76be64deafa07 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 22 Mar 2023 10:04:50 +0100 Subject: lease-script: add script name in order This makes sure scripts with the same order can not conflict. --- lease-script.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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={ -- cgit v1.2.3-70-g09d2