From 7dcbe0e22dbb8c1e67a4c177247e774c67a27b2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Tue, 27 Feb 2018 16:49:31 +0100 Subject: [PATCH] bcm53xx: fix fallback code for picking status LED MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Looking for a wrong LED file name was stopping this code from find any LED. This affects devices with only a red/amber power LED. Fixes: 3aaee1ba023ac ("bcm53xx: failsafe support") Signed-off-by: Rafał Miłecki --- target/linux/bcm53xx/base-files/etc/diag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/bcm53xx/base-files/etc/diag.sh b/target/linux/bcm53xx/base-files/etc/diag.sh index a8a560cd06..1a9332327a 100644 --- a/target/linux/bcm53xx/base-files/etc/diag.sh +++ b/target/linux/bcm53xx/base-files/etc/diag.sh @@ -13,7 +13,7 @@ get_status_led() { fi; # Now just pick any power LED - status_led_file=$(find /sys/class/leds/ -name "*:power:*" | head -n1) + status_led_file=$(find /sys/class/leds/ -name "*:power" | head -n1) if [ -d "$status_led_file" ]; then status_led=$(basename $status_led_file) return -- 2.30.2