ipq40xx: add get_status_led to diag.sh
This commit adds the get_status_led method to diag.sh, which sets the boot-led as status-led for scripts using this method to get a status-led. This method is used platform-independent in downstream project gluon to set the LED used to indicate the config-mode. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
parent
2314c2c6f2
commit
4fc005197a
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,10 @@ failsafe="$(get_dt_led failsafe)"
|
||||||
running="$(get_dt_led running)"
|
running="$(get_dt_led running)"
|
||||||
upgrade="$(get_dt_led upgrade)"
|
upgrade="$(get_dt_led upgrade)"
|
||||||
|
|
||||||
|
get_status_led() {
|
||||||
|
status_led="$boot"
|
||||||
|
}
|
||||||
|
|
||||||
set_state() {
|
set_state() {
|
||||||
status_led="$boot"
|
status_led="$boot"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue