bcm63xx: Accept any led with power in its name as power led
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 11 May 2011 13:33:45 +0000 (13:33 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 11 May 2011 13:33:45 +0000 (13:33 +0000)
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26875 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index cda52ac..d492cd5 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
This page took 0.028072 seconds and 4 git commands to generate.