From 663c75c6b2009ca185380488221086ea7ac5aeb8 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 13 May 2007 10:17:57 +0000 Subject: Fix set_state preinit stuff git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7200 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/preinit | 3 +++ package/base-files/files/sbin/mount_root | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'package/base-files') diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit index b23508f55..34befe5ac 100755 --- a/package/base-files/files/etc/preinit +++ b/package/base-files/files/etc/preinit @@ -10,6 +10,9 @@ failsafe() { [ -e /etc/preinit.arch ] && . /etc/preinit.arch +mount -t proc none /proc +mount -t sysfs none /sys + set_state preinit mount_root ${FAILSAFE:+failsafe} diff --git a/package/base-files/files/sbin/mount_root b/package/base-files/files/sbin/mount_root index a77a7f645..eac4ef396 100755 --- a/package/base-files/files/sbin/mount_root +++ b/package/base-files/files/sbin/mount_root @@ -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) /dev/null; then 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 -- cgit v1.2.3