clean up the mtd unlocking

SVN-Revision: 7199
master
Mike Baker 18 years ago
parent d39adea0f7
commit e4c6078c67
  1. 25
      package/base-files/files/sbin/mount_root

@ -41,18 +41,19 @@ jffs2_ready () {
} }
[ failsafe != "$1" ] && { [ failsafe != "$1" ] && {
grep rootfs /proc/mtd >/dev/null 2>/dev/null && { grep rootfs_data /proc/mtd >/dev/null 2>/dev/null && {
mtd unlock rootfs . /bin/firstboot
grep rootfs_data /proc/mtd >/dev/null 2>/dev/null && { mtd unlock rootfs_data
. /bin/firstboot 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 && \
fopivot /jffs /rom fopivot /jffs /rom
} || { } || {
echo "jffs2 not ready yet; using ramdisk" echo "jffs2 not ready yet; using ramdisk"
ramoverlay ramoverlay
}
} }
} || mount -o remount,rw /dev/root / } || {
mtd unlock rootfs
mount -o remount,rw /dev/root /
}
} }

Loading…
Cancel
Save