2005-02-06 02:52:16 +02:00
|
|
|
#!/bin/sh
|
|
|
|
mount none /proc -t proc
|
|
|
|
insmod diag
|
|
|
|
echo 0x01 > /proc/sys/diag
|
|
|
|
sleep 1
|
2005-05-05 15:01:56 +03:00
|
|
|
if [ $(cat /proc/sys/reset) = 1 ] || [ "$(/usr/sbin/nvram get failsafe)" = 1 ]; then
|
2005-07-15 19:49:11 +03:00
|
|
|
export FAILSAFE=true
|
|
|
|
[ "$(/usr/sbin/nvram get boot_wait)" != "on" ] && {
|
|
|
|
/usr/sbin/nvram set boot_wait=on
|
|
|
|
/usr/sbin/nvram commit
|
|
|
|
}
|
|
|
|
while :; do { echo $(((X=(X+1)%8)%2)) > /proc/sys/diag; sleep $((X==0)); } done &
|
2005-02-06 02:52:16 +02:00
|
|
|
fi
|
2005-07-15 19:49:11 +03:00
|
|
|
|
2005-03-23 15:31:22 +02:00
|
|
|
/sbin/mount_root ${FAILSAFE:+failsafe}
|
|
|
|
|
2005-02-06 02:52:16 +02:00
|
|
|
exec /sbin/init
|