diff options
author | David Bauer <mail@david-bauer.net> | 2018-06-13 01:37:55 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-06-18 07:10:19 +0200 |
commit | 4fc005197a320ff728544eba8028f7a9f23e1868 (patch) | |
tree | a793a94c71d3688e38ced1b1feeb8baf38949600 /target | |
parent | 2314c2c6f295b7b4aa5a261d19fa6ca16210f42c (diff) | |
download | upstream-4fc005197a320ff728544eba8028f7a9f23e1868.tar.gz upstream-4fc005197a320ff728544eba8028f7a9f23e1868.tar.bz2 upstream-4fc005197a320ff728544eba8028f7a9f23e1868.zip |
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>
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/ipq40xx/base-files/etc/diag.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/base-files/etc/diag.sh b/target/linux/ipq40xx/base-files/etc/diag.sh index 4cfe6325f2..a3a7047702 100755 --- a/target/linux/ipq40xx/base-files/etc/diag.sh +++ b/target/linux/ipq40xx/base-files/etc/diag.sh @@ -7,6 +7,10 @@ failsafe="$(get_dt_led failsafe)" running="$(get_dt_led running)" upgrade="$(get_dt_led upgrade)" +get_status_led() { + status_led="$boot" +} + set_state() { status_led="$boot" |