aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorRobinson Wu <wurobinson@qq.com>2019-06-04 11:13:39 +0800
committerChristian Lamparter <chunkeey@gmail.com>2019-06-20 20:09:21 +0200
commit4e925d0b8272b0c545fa0550b45be333a2516512 (patch)
tree9f9a12629b03d033fe42a9031f831e45a9ce1bea /package
parent9ed98198cb5096be60db7f44127c69d0a4eee214 (diff)
downloadupstream-4e925d0b8272b0c545fa0550b45be333a2516512.tar.gz
upstream-4e925d0b8272b0c545fa0550b45be333a2516512.tar.bz2
upstream-4e925d0b8272b0c545fa0550b45be333a2516512.zip
base-files: fix uci led oneshot/timer trigger
This patch adds a missing type property which prevented the creation of oneshot and timer led triggers when they are specified in the /etc/board.d/01_leds files. i.e.: ucidef_set_led_timer "system" "system" "zhuotk:green:system" "1000" "1000" Fixes: b06a286a4861 ("base-files: cleanup led functions in uci-defaults.sh") Signed-off-by: Robinson Wu <wurobinson@qq.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/lib/functions/uci-defaults.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index 1d57de5a70..2fb7555969 100755
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -476,6 +476,7 @@ _ucidef_set_led_timer() {
_ucidef_set_led_common "$1" "$2" "$3"
+ json_add_string type "$trigger_name"
json_add_string trigger "$trigger_name"
json_add_int delayon "$delayon"
json_add_int delayoff "$delayoff"