bcm63xx: Accept any led with power in its name as power led
authorFlorian Fainelli <florian@openwrt.org>
Wed, 11 May 2011 13:33:45 +0000 (13:33 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 11 May 2011 13:33:45 +0000 (13:33 +0000)
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 26875

target/linux/brcm63xx/base-files/etc/diag.sh

index cda52ac185a4ad93a6ee35d440373640a71c9e88..d492cd553e0b113399094616926199bfc5dd8985 100755 (executable)
@@ -61,7 +61,7 @@ set_state() {
                status_led_set_timer 50 50
                ;;
        done)
-               if [ "${status_led#power}" != "$status_led" ]; then
+               if [ "${status_led/power}" != "$status_led" ]; then
                        status_led_on
                else
                        status_led_off