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