[PATCH 1/2] base-files: add uci section name for application led trigger handling

Florian Eckert fe at dev.tdt.de
Thu Mar 17 05:41:20 PDT 2022


In order to read out additional options from the uci section in the
called led trigger script, this section must also be add as a argument
to the application led trigger script.

Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 package/base-files/files/etc/init.d/led | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led
index 51cb8b5178..80db46f4f8 100755
--- a/package/base-files/files/etc/init.d/led
+++ b/package/base-files/files/etc/init.d/led
@@ -33,7 +33,7 @@ load_led() {
 
 	# execute application led trigger
 	[ -f "/usr/libexec/led-trigger/${trigger}" ] && {
-		. "/usr/libexec/led-trigger/${trigger}"
+		. "/usr/libexec/led-trigger/${trigger}" "$1"
 		return 0
 	}
 
-- 
2.20.1




More information about the openwrt-devel mailing list