summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2018-06-13 01:37:55 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-07-15 20:08:44 +0200
commitdc52b7b104aa2b75a55d905dd2a416328c84cde7 (patch)
tree462deb2555f86d6581bdbe1604cd948800edc243
parent7fc7128b086a9447f4ac043fd403e359019ddbab (diff)
downloadopenwrt-dc52b7b104aa2b75a55d905dd2a416328c84cde7.tar.gz
openwrt-dc52b7b104aa2b75a55d905dd2a416328c84cde7.tar.bz2
openwrt-dc52b7b104aa2b75a55d905dd2a416328c84cde7.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> (cherry picked from commit 4fc005197a320ff728544eba8028f7a9f23e1868)
-rwxr-xr-xtarget/linux/ipq40xx/base-files/etc/diag.sh4
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"