From 072a4c8a8d9eb32bee39c7e83bdc38deca7931f4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 16 Oct 2006 01:30:21 +0000 Subject: [PATCH] use the power led as boot state and failsafe indicator SVN-Revision: 5147 --- openwrt/package/base-files/default/etc/init.d/S99done | 2 +- openwrt/package/base-files/default/etc/preinit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openwrt/package/base-files/default/etc/init.d/S99done b/openwrt/package/base-files/default/etc/init.d/S99done index f49d3103a1..9682c0c85f 100755 --- a/openwrt/package/base-files/default/etc/init.d/S99done +++ b/openwrt/package/base-files/default/etc/init.d/S99done @@ -11,4 +11,4 @@ sysctl -p >&- } # set leds to normal state -echo "0x00" > /proc/sys/diag +echo "0x02" > /proc/sys/diag diff --git a/openwrt/package/base-files/default/etc/preinit b/openwrt/package/base-files/default/etc/preinit index cf3bfdea51..a663c1a955 100755 --- a/openwrt/package/base-files/default/etc/preinit +++ b/openwrt/package/base-files/default/etc/preinit @@ -35,7 +35,7 @@ netmsg 192.168.1.255 "Press reset now, to enter Failsafe!" sleep 2 if [ "$(cat /proc/sys/reset 2>&-)" = 1 -o "$(nvram get failsafe)" = 1 ]; then - while :; do { echo $(((X=(X+1)%8)%2)) > /proc/sys/diag; sleep $((X==0)); } done & + while :; do { echo $((((X=(X+1)%8)%2)*3)) > /proc/sys/diag; sleep $((X==0)); } done & export FAILSAFE=true [ "$(nvram get boot_wait)" != "on" ] && { nvram set boot_wait=on -- 2.30.2