use the power led as boot state and failsafe indicator
authorFelix Fietkau <nbd@openwrt.org>
Mon, 16 Oct 2006 01:30:21 +0000 (01:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 16 Oct 2006 01:30:21 +0000 (01:30 +0000)
SVN-Revision: 5147

openwrt/package/base-files/default/etc/init.d/S99done
openwrt/package/base-files/default/etc/preinit

index f49d3103a12f80148d2701081e2f1febf85d6026..9682c0c85f353e58e392980998040c75f921b805 100755 (executable)
@@ -11,4 +11,4 @@ sysctl -p >&-
 }
 
 # set leds to normal state
-echo "0x00" > /proc/sys/diag
+echo "0x02" > /proc/sys/diag
index cf3bfdea51938aab9373f71d0aee9c86f7c9d8d6..a663c1a955f04588aead91795affcbf701201ff5 100755 (executable)
@@ -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