aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
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 19:59:31 +0200
commit869ff80d312d5ef64f84eb22a0906f80e614f706 (patch)
tree0d35a8cbff4110a80910df955855c94570c3796d /package/base-files
parent971f31bedcad0a954a4a4e79140346cc896d352e (diff)
downloadupstream-869ff80d312d5ef64f84eb22a0906f80e614f706.tar.gz
upstream-869ff80d312d5ef64f84eb22a0906f80e614f706.tar.bz2
upstream-869ff80d312d5ef64f84eb22a0906f80e614f706.zip
base-files: fix uci led oneshot/timer trigger
This patch adds a missing type property. This fixes the creation of oneshot and timer led triggers like: | ucidef_set_led_timer "system" "system" "zhuotk:green:system" "1000" "1000" from /etc/init.d/01_leds. 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/base-files')
-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"