Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21.02] base-files: add support for heartbeat led trigger #10730

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions package/base-files/files/lib/functions/uci-defaults.sh
Expand Up @@ -418,6 +418,15 @@ ucidef_set_led_default() {
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() {
local gpio="$4"
local inverted="$5"
Expand Down