From: Daniel Dickinson Date: Mon, 2 Aug 2010 19:33:08 +0000 (+0000) Subject: base-files: diag.sh: For power button as preinit status led, end with led left on... X-Git-Tag: reboot~19248 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5fdf57a1bbdd4aab94108135506400b5bff6325;p=oweals%2Fopenwrt.git base-files: diag.sh: For power button as preinit status led, end with led left on, not off SVN-Revision: 22466 --- diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh index f77200aeed..fd9de29ad4 100755 --- a/target/linux/brcm63xx/base-files/etc/diag.sh +++ b/target/linux/brcm63xx/base-files/etc/diag.sh @@ -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 }