6 [ -f "/tmp/.firstboot" ] && {
7 echo "firstboot is already running"
12 jdev=$(mount | awk '/jffs2/ {print $3}')
14 if [ -z "$jdev" ]; then
16 mount -t jffs2 /dev/mtdblock/4 /jffs
19 echo "firstboot has already been run"
20 echo "fixing symlinks instead"
24 mount /dev/mtdblock/2 /rom -o ro
32 for file in $(cd /rom; find * -type f; find * -type l;)
34 ln -sf /rom/$file $file
37 touch /tmp/resolv.conf
38 ln -s /tmp/resolv.conf /etc/resolv.conf
41 mount none /jffs/proc -t proc
42 pivot_root /jffs /jffs/rom
43 mount none /dev -t devfs
44 mount none /tmp -t ramfs