7 if [ -z "$(mount | grep jffs2)" ]; then
9 mount -t jffs2 /dev/mtdblock/4 /jffs
10 mount /dev/mtdblock/2 /rom -o ro
13 echo "firstboot has already been run"
14 echo "fixing symlinks instead"
24 for file in $(cd /rom; find * -type f; find * -type l;)
26 ln -sf /rom/$file $file
29 touch /tmp/resolv.conf
30 ln -s /tmp/resolv.conf /etc/resolv.conf
33 mount none /jffs/proc -t proc
34 pivot_root /jffs /jffs/rom
35 mount none /dev -t devfs
36 mount none /tmp -t ramfs