[OpenWrt-Devel] [PATCH] ipq40xx: add get_status_led to diag.sh

David Bauer mail at david-bauer.net
Tue Jun 12 19:37:55 EDT 2018

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

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 at david-bauer.net>
 target/linux/ipq40xx/base-files/etc/diag.sh | 4 ++++
 1 file changed, 4 insertions(+)

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() {

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list