2 # executed from squashfs before init to
3 # transfer root to the jffs2 partition
4 mount none /proc -t proc
6 echo 0x01 > /proc/sys/diag
8 if [ $(cat /proc/sys/reset) = 1 ] ; then
12 mount -t jffs2 /dev/mtdblock/4 /jffs
13 pivot_root /jffs /jffs/rom
14 mount none /dev -t devfs
15 mount none /proc -t proc
16 umount rom/proc rom/dev
18 mount none /tmp -t ramfs