base-files: fix uci led oneshot/timer trigger
authorRobinson Wu <wurobinson@qq.com>
Tue, 4 Jun 2019 03:13:39 +0000 (11:13 +0800)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 20 Jun 2019 15:41:42 +0000 (17:41 +0200)
commit9656f49ea009a2337e4ac580d7aed326e3183c0e
tree828686cfd16ab9f8b697355d7de97d7fb72a81f1
parentbd0c3988e742e1bad385ef3d2112b05472bd111c
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>
[also fix oneshot as well]
package/base-files/files/lib/functions/uci-defaults.sh