projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6239d5
)
clean up the mtd unlocking
author
Mike Baker
<mbm@openwrt.org>
Sun, 13 May 2007 09:39:21 +0000
(09:39 +0000)
committer
Mike Baker
<mbm@openwrt.org>
Sun, 13 May 2007 09:39:21 +0000
(09:39 +0000)
SVN-Revision: 7199
package/base-files/files/sbin/mount_root
patch
|
blob
|
history
diff --git
a/package/base-files/files/sbin/mount_root
b/package/base-files/files/sbin/mount_root
index 2006f0128e86d4aa4e8c133df3637dbedc7f4ef6..a77a7f645311b70966e15ac7b6e701e5b3a1b7cc 100755
(executable)
--- a/
package/base-files/files/sbin/mount_root
+++ b/
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 && {
- mtd unlock rootfs
- grep rootfs_data /proc/mtd >/dev/null 2>/dev/null && {
- . /bin/firstboot
- jffs2_ready && {
- echo "switching to jffs2"
- mount "$(find_mtd_part rootfs_data)" /jffs -t jffs2 && \
+ grep rootfs_data /proc/mtd >/dev/null 2>/dev/null && {
+ . /bin/firstboot
+ mtd unlock rootfs_data
+ jffs2_ready && {
+ echo "switching to jffs2"
+ mount "$(find_mtd_part rootfs_data)" /jffs -t jffs2 && \
fopivot /jffs /rom
fopivot /jffs /rom
- } || {
- echo "jffs2 not ready yet; using ramdisk"
- ramoverlay
- }
+ } || {
+ echo "jffs2 not ready yet; using ramdisk"
+ ramoverlay
}
}
- } || mount -o remount,rw /dev/root /
+ } || {
+ mtd unlock rootfs
+ mount -o remount,rw /dev/root /
+ }
}
}