2004-03-28 00:20:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
mount none /proc -t proc
|
2004-05-10 03:00:19 +00:00
|
|
|
insmod diag
|
|
|
|
echo 0x01 > /proc/sys/diag
|
2004-05-09 21:43:28 +00:00
|
|
|
sleep 1
|
2004-03-28 00:20:21 +00:00
|
|
|
if /sbin/resetmon ; then
|
|
|
|
mount -t jffs2 /dev/mtdblock/4 /jffs
|
|
|
|
pivot_root /jffs /jffs/rom
|
|
|
|
mount none /dev -t devfs
|
|
|
|
mount none /proc -t proc
|
|
|
|
umount rom/proc
|
|
|
|
umount rom/dev
|
|
|
|
else
|
2004-05-10 03:00:19 +00:00
|
|
|
export FAILSAFE=true
|
2004-03-28 00:20:21 +00:00
|
|
|
fi
|
|
|
|
mount none /tmp -t ramfs
|
|
|
|
exec /sbin/init
|