From ac9bed4bc074d881d3d9ebe8f316dccff397723a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 3 Dec 2015 22:27:02 +0000 Subject: base-files: board.d: support timer leds Add ucidef_set_led_timer() and handling for it to config_generate. Signed-off-by: Jo-Philipp Wich SVN-Revision: 47731 --- package/base-files/files/bin/config_generate | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'package/base-files/files/bin') diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 7e0e2ac..264f7d3 100755 --- a/package/base-files/files/bin/config_generate +++ b/package/base-files/files/bin/config_generate @@ -236,6 +236,16 @@ generate_led() { set system.$cfg.port_mask='$port_mask' EOF ;; + + timer) + local delayon delayoff + json_get_vars delayon delayoff + uci -q batch <<-EOF + set system.$cfg.trigger='timer' + set system.$cfg.delayon='$delayon' + set system.$cfg.delayoff='$delayoff' + EOF + ;; esac json_select .. -- cgit v1.1