diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-05-31 14:35:24 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-06-08 00:31:09 +0200 |
commit | 07f03d08335aca0914059425a29d708e5490846e (patch) | |
tree | a5f28c6c575d7ec7cb26f9142757e0bbfd688d27 /package/base-files/files/bin | |
parent | 197c32e7bd7aba8bbc984841302c6e9704b99c1e (diff) | |
download | upstream-07f03d08335aca0914059425a29d708e5490846e.tar.gz upstream-07f03d08335aca0914059425a29d708e5490846e.tar.bz2 upstream-07f03d08335aca0914059425a29d708e5490846e.zip |
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>
Diffstat (limited to 'package/base-files/files/bin')
-rwxr-xr-x | package/base-files/files/bin/config_generate | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 2036ae44fe..428c6bd9de 100755 --- a/package/base-files/files/bin/config_generate +++ b/package/base-files/files/bin/config_generate @@ -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 |