summaryrefslogtreecommitdiff
path: root/target/linux/bcm53xx
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-02-27 16:49:31 +0100
committerRafał Miłecki <rafal@milecki.pl>2018-02-27 16:52:25 +0100
commit86e5a6d985e1666e685b1cacb204039ddf03f4cb (patch)
tree83d922619ada930adbb06b1bb97a6f162a47c41e /target/linux/bcm53xx
parent3bd2e195ecdcf77482a983451067ad725771de4b (diff)
downloadmtk-20170518-86e5a6d985e1666e685b1cacb204039ddf03f4cb.zip
mtk-20170518-86e5a6d985e1666e685b1cacb204039ddf03f4cb.tar.gz
mtk-20170518-86e5a6d985e1666e685b1cacb204039ddf03f4cb.tar.bz2
bcm53xx: fix fallback code for picking status LED
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 <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm53xx')
-rw-r--r--target/linux/bcm53xx/base-files/etc/diag.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/bcm53xx/base-files/etc/diag.sh b/target/linux/bcm53xx/base-files/etc/diag.sh
index a8a560c..1a93323 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