clean up the mtd unlocking
SVN-Revision: 7199
This commit is contained in:
parent
d39adea0f7
commit
e4c6078c67
1 changed files with 13 additions and 12 deletions
|
@ -41,10 +41,9 @@ jffs2_ready () {
|
||||||
}
|
}
|
||||||
|
|
||||||
[ failsafe != "$1" ] && {
|
[ failsafe != "$1" ] && {
|
||||||
grep rootfs /proc/mtd >/dev/null 2>/dev/null && {
|
|
||||||
mtd unlock rootfs
|
|
||||||
grep rootfs_data /proc/mtd >/dev/null 2>/dev/null && {
|
grep rootfs_data /proc/mtd >/dev/null 2>/dev/null && {
|
||||||
. /bin/firstboot
|
. /bin/firstboot
|
||||||
|
mtd unlock rootfs_data
|
||||||
jffs2_ready && {
|
jffs2_ready && {
|
||||||
echo "switching to jffs2"
|
echo "switching to jffs2"
|
||||||
mount "$(find_mtd_part rootfs_data)" /jffs -t jffs2 && \
|
mount "$(find_mtd_part rootfs_data)" /jffs -t jffs2 && \
|
||||||
|
@ -53,6 +52,8 @@ jffs2_ready () {
|
||||||
echo "jffs2 not ready yet; using ramdisk"
|
echo "jffs2 not ready yet; using ramdisk"
|
||||||
ramoverlay
|
ramoverlay
|
||||||
}
|
}
|
||||||
|
} || {
|
||||||
|
mtd unlock rootfs
|
||||||
|
mount -o remount,rw /dev/root /
|
||||||
}
|
}
|
||||||
} || mount -o remount,rw /dev/root /
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue