Explorar el Código

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 <[email protected]>
Rafał Miłecki hace 8 años
padre
commit
86e5a6d985
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      target/linux/bcm53xx/base-files/etc/diag.sh

+ 1 - 1
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