mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-10 16:36:16 +02:00
fix a bug that prevents the wgt634u from initializing the filesystem properly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3601 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
30aba41404
commit
1e0479ad19
@ -37,6 +37,8 @@ pivot() { # <new_root> <old_root>
|
|||||||
pivot_root $1 $1$2 && {
|
pivot_root $1 $1$2 && {
|
||||||
mount -o move $2/dev /dev
|
mount -o move $2/dev /dev
|
||||||
mount -o move $2/tmp /tmp
|
mount -o move $2/tmp /tmp
|
||||||
|
mount -o move $2/sys /sys
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,9 +22,13 @@ if [ "$1" != "failsafe" ]; then
|
|||||||
. /bin/firstboot
|
. /bin/firstboot
|
||||||
is_dirty
|
is_dirty
|
||||||
[ $? != 0 ] && {
|
[ $? != 0 ] && {
|
||||||
mount /dev/mtdblock/4 /jffs
|
echo "switching to jffs2"
|
||||||
|
mount /dev/mtdblock/4 /jffs -t jffs2
|
||||||
pivot /jffs /rom
|
pivot /jffs /rom
|
||||||
} || ramoverlay
|
} || {
|
||||||
|
echo "jffs2 unusable; using ramdisk"
|
||||||
|
ramoverlay
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user