summaryrefslogtreecommitdiff
path: root/package
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 /package
parent0b9c3f09c6617d5f0af06dc4f2aa040519f5a2c4 (diff)
downloadmtk-20170518-d5027649533fd543f144752b03ef6f3b000ba45f.zip
mtk-20170518-d5027649533fd543f144752b03ef6f3b000ba45f.tar.gz
mtk-20170518-d5027649533fd543f144752b03ef6f3b000ba45f.tar.bz2
/proc needs to be mounted before preinit.arch for failsafe
SVN-Revision: 7220
Diffstat (limited to 'package')
-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 34befe5..d1a6ffd 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