diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-12-03 22:27:02 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-12-03 22:27:02 +0000 |
commit | ac9bed4bc074d881d3d9ebe8f316dccff397723a (patch) | |
tree | f1ba3c3dc7959220196a16d4a12c177a05329650 /package/base-files/files/bin/config_generate | |
parent | 4615944c71dcf8e21d8e90ea48ce6a6ba00a7b4c (diff) | |
download | upstream-ac9bed4bc074d881d3d9ebe8f316dccff397723a.tar.gz upstream-ac9bed4bc074d881d3d9ebe8f316dccff397723a.tar.bz2 upstream-ac9bed4bc074d881d3d9ebe8f316dccff397723a.zip |
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 <jow@openwrt.org>
SVN-Revision: 47731
Diffstat (limited to 'package/base-files/files/bin/config_generate')
-rwxr-xr-x | package/base-files/files/bin/config_generate | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 7e0e2acd3b..264f7d3ed1 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 .. |