2
0
forked from Ivasoft/openwrt

base-files: support port_state LED types in board.d

Add support for handling port_state LEDs as used by ADM5120.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich
2016-05-31 14:35:24 +02:00
parent 197c32e7bd
commit 07f03d0833
2 changed files with 27 additions and 0 deletions

View File

@@ -354,6 +354,14 @@ generate_led() {
EOF
;;
portstate)
local port_state
json_get_vars port_state
uci -q batch <<-EOF
set system.$cfg.port_state='$port_state'
EOF
;;
timer|oneshot)
local delayon delayoff
json_get_vars delayon delayoff