fix a bug that prevents the wgt634u from initializing the filesystem properly

SVN-Revision: 3601
This commit is contained in:
Mike Baker 2006-04-08 21:11:49 +00:00
parent fda33a85fa
commit 893cb473a0
2 changed files with 8 additions and 2 deletions

View File

@ -37,6 +37,8 @@ pivot() { # <new_root> <old_root>
pivot_root $1 $1$2 && {
mount -o move $2/dev /dev
mount -o move $2/tmp /tmp
mount -o move $2/sys /sys
return 0
}
}

View File

@ -22,9 +22,13 @@ if [ "$1" != "failsafe" ]; then
. /bin/firstboot
is_dirty
[ $? != 0 ] && {
mount /dev/mtdblock/4 /jffs
echo "switching to jffs2"
mount /dev/mtdblock/4 /jffs -t jffs2
pivot /jffs /rom
} || ramoverlay
} || {
echo "jffs2 unusable; using ramdisk"
ramoverlay
}
fi
fi