2
0
forked from Ivasoft/openwrt

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
This commit is contained in:
Jo-Philipp Wich
2015-12-03 22:27:02 +00:00
parent 4615944c71
commit ac9bed4bc0
2 changed files with 30 additions and 0 deletions

View File

@@ -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 ..