aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2007-05-14 05:37:24 +0000
committerMike Baker <mbm@openwrt.org>2007-05-14 05:37:24 +0000
commitd5027649533fd543f144752b03ef6f3b000ba45f (patch)
tree805fe55e3ed84ba0b0ee34aa860ced23c1c7dccf
parent0b9c3f09c6617d5f0af06dc4f2aa040519f5a2c4 (diff)
downloadupstream-d5027649533fd543f144752b03ef6f3b000ba45f.tar.gz
upstream-d5027649533fd543f144752b03ef6f3b000ba45f.tar.bz2
upstream-d5027649533fd543f144752b03ef6f3b000ba45f.zip
/proc needs to be mounted before preinit.arch for failsafe
SVN-Revision: 7220
-rwxr-xr-xpackage/base-files/files/etc/preinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit
index 34befe5ac7..d1a6ffd549 100755
--- a/package/base-files/files/etc/preinit
+++ b/package/base-files/files/etc/preinit
@@ -8,10 +8,10 @@ failsafe() {
ash --login
}
-[ -e /etc/preinit.arch ] && . /etc/preinit.arch
+mount none /proc -t proc
+mount none /sys -t sysfs
-mount -t proc none /proc
-mount -t sysfs none /sys
+[ -e /etc/preinit.arch ] && . /etc/preinit.arch
set_state preinit