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:
8bcf164
)
cleanup
author
Mike Baker
<mbm@openwrt.org>
Tue, 28 Feb 2006 07:46:15 +0000
(07:46 +0000)
committer
Mike Baker
<mbm@openwrt.org>
Tue, 28 Feb 2006 07:46:15 +0000
(07:46 +0000)
SVN-Revision: 3285
openwrt/package/base-files/default/sbin/mount_root
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/sbin/mount_root
b/openwrt/package/base-files/default/sbin/mount_root
index 3707920ed45070f25f54454069fadbc64eb48c42..8fddce7e2546487d2817e55e95317ecfa191e796 100755
(executable)
--- a/
openwrt/package/base-files/default/sbin/mount_root
+++ b/
openwrt/package/base-files/default/sbin/mount_root
@@
-16,19
+16,15
@@
if [ "$1" != "failsafe" -a "$(nvram get no_root_swap)" != 1 ]; then
mount -o remount,rw /dev/root /
fi
else
- is_dirty
- if [ $? = 0 ]; then
- firstboot ramoverlay >&- 2>&-
- else
+ is_dirty
+ [ $? != 0 ] && {
mount /dev/mtdblock/4 /jffs
pivot_root /jffs /jffs/rom && {
mount none /proc -t proc
umount /rom/proc
mount -o move /rom/dev /dev
- } || {
- firstboot ramoverlay
}
- fi
+ } || firstboot ramoverlay
fi
fi