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 <[email protected]>
---
 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


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to