mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-05 05:24:20 +00:00
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: 3aaee1ba02
("bcm53xx: failsafe support")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
parent
4db583b9c2
commit
7dcbe0e22d
@ -13,7 +13,7 @@ get_status_led() {
|
|||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Now just pick any power LED
|
# 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
|
if [ -d "$status_led_file" ]; then
|
||||||
status_led=$(basename $status_led_file)
|
status_led=$(basename $status_led_file)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user