add some fixes for parallel build (does not work with -j4 yet, but it gets most packa...
[openwrt.git] / openwrt / target / default / target_skeleton / sbin / mount_root
1 #!/bin/sh
2 if [ "$1" != "failsafe" ]; then
3 mount | grep jffs2 >&-
4 if [ $? = 0 ] ; then
5 mtd unlock linux
6 mtd unlock rootfs
7 [ $(cat /proc/mtd | wc -l) = 6 ] && {
8 echo 5 > /proc/sys/diag
9 mtd unlock OpenWrt
10 mtd erase OpenWrt
11 jffs2root --move
12 }
13 mount -o remount,rw /dev/root /
14 else
15 mtd unlock mtd4
16 mount -t jffs2 /dev/mtdblock/4 /jffs
17 pivot_root /jffs /jffs/rom
18 mount none /proc -t proc
19 mount none /dev -t devfs
20 umount rom/proc rom/dev
21 fi
22 fi
23 mount none /tmp -t ramfs
24 mkdir -p /dev/pts
25 mount none /dev/pts -t devpts
This page took 0.040926 seconds and 5 git commands to generate.