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