6 [ -f "/tmp/.firstboot" ] && {
7 echo "firstboot is already running"
12 jdev
=$
(mount |
awk '/jffs2/ {print $3}')
14 if [ -z "$jdev" ]; then
15 echo -n "Creating jffs2 partition... "
17 mount
-t jffs2
/dev
/mtdblock
/4 /jffs
21 echo "firstboot has already been run"
22 echo "jffs2 partition is mounted, only resetting files"
26 mount
/dev
/mtdblock
/2 /rom
-o ro
28 echo -n "creating directories... "
36 echo -n "setting up symlinks... "
37 for file in $
(cd /rom
; find * -type f
; find * -type l
;)
39 ln -sf /rom
/$file $file
43 touch /tmp
/resolv.conf
44 ln -s /tmp
/resolv.conf
/etc
/resolv.conf
47 mount none
/jffs
/proc
-t proc
48 pivot_root
/jffs
/jffs
/rom
49 mount none
/dev
-t devfs
50 mount none
/tmp
-t ramfs
This page took 0.045517 seconds and 5 git commands to generate.