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-11 04:09:47 +00:00
|
|
|
sleep 1
|
2004-03-28 00:20:21 +00:00
|
|
|
if /sbin/resetmon ; then
|
2004-07-07 05:11:08 +00:00
|
|
|
mount -t jffs2 /dev/mtdblock/4 /jffs && \
|
|
|
|
mtd unlock mtd4 &
|
2004-03-28 00:20:21 +00:00
|
|
|
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
|