mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
base-files: add support for heartbeat led trigger
This patch adds support for creation heartbeat led trigger with, for example, this command: ucidef_set_led_heartbeat "..." "..." "..." from /etc/board.d/01_leds. Signed-off-by: Alexey Smirnov <s.alexey@gmail.com>
This commit is contained in:
parent
8f7e660d4d
commit
98b97c58f2
@ -418,6 +418,15 @@ ucidef_set_led_default() {
|
|||||||
json_select ..
|
json_select ..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ucidef_set_led_heartbeat() {
|
||||||
|
_ucidef_set_led_common "$1" "$2" "$3"
|
||||||
|
|
||||||
|
json_add_string trigger heartbeat
|
||||||
|
json_select ..
|
||||||
|
|
||||||
|
json_select ..
|
||||||
|
}
|
||||||
|
|
||||||
ucidef_set_led_gpio() {
|
ucidef_set_led_gpio() {
|
||||||
local gpio="$4"
|
local gpio="$4"
|
||||||
local inverted="$5"
|
local inverted="$5"
|
||||||
|
Loading…
Reference in New Issue
Block a user