rendered paste body--- package/base-files/files/etc/preinit (revision 7177)
+++ package/base-files/files/etc/preinit (working copy)
@@ -8,6 +8,9 @@
ash --login
}
+mount none /proc -t proc
+mount none /sys -t sysfs
+
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
set_state preinit
Index: package/base-files/files/sbin/mount_root
===================================================================
--- package/base-files/files/sbin/mount_root (revision 7199)
+++ package/base-files/files/sbin/mount_root (working copy)
@@ -2,8 +2,6 @@
# Copyright (C) 2006 OpenWrt.org
. /etc/functions.sh
-mount none /proc -t proc
-
size=$(awk '/MemTotal:/ {l=5242880;mt=($2*1024);print((s=mt/2)<l)?mt-l:s}' /proc/meminfo)
mount none /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777
@@ -13,7 +11,6 @@
M1=/dev/pty/m1
HOTPLUG=/sbin/hotplug-call
else
- mount -t sysfs none /sys
mount -t tmpfs tmpfs /dev -o size=512K
mknod /dev/console c 5 1
mkdir /dev/shm