[brcm63xx]: base-files: diag.sh: For power button as preinit status led, end with...
authorcshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Aug 2010 19:33:08 +0000 (19:33 +0000)
committercshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 2 Aug 2010 19:33:08 +0000 (19:33 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22466 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index f77200a..fd9de29 100755 (executable)
@@ -61,7 +61,11 @@ set_state() {
                status_led_set_timer 50 50
                ;;
        done)
-               status_led_off
+               if [ "$status_led" = "power" ]; then
+                       status_led_on
+               else
+                       status_led_off
+               fi
                ;;
        esac
 }