mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 22:05:19 +02:00
Fix set_state preinit stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7200 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6853d4d1ef
commit
663c75c6b2
@ -10,6 +10,9 @@ failsafe() {
|
|||||||
|
|
||||||
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
|
[ -e /etc/preinit.arch ] && . /etc/preinit.arch
|
||||||
|
|
||||||
|
mount -t proc none /proc
|
||||||
|
mount -t sysfs none /sys
|
||||||
|
|
||||||
set_state preinit
|
set_state preinit
|
||||||
|
|
||||||
mount_root ${FAILSAFE:+failsafe}
|
mount_root ${FAILSAFE:+failsafe}
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
. /etc/functions.sh
|
. /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)
|
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
|
mount none /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777
|
||||||
|
|
||||||
@ -13,7 +11,6 @@ if grep devfs /proc/filesystems > /dev/null; then
|
|||||||
M1=/dev/pty/m1
|
M1=/dev/pty/m1
|
||||||
HOTPLUG=/sbin/hotplug-call
|
HOTPLUG=/sbin/hotplug-call
|
||||||
else
|
else
|
||||||
mount -t sysfs none /sys
|
|
||||||
mount -t tmpfs tmpfs /dev -o size=512K
|
mount -t tmpfs tmpfs /dev -o size=512K
|
||||||
mknod /dev/console c 5 1
|
mknod /dev/console c 5 1
|
||||||
mkdir /dev/shm
|
mkdir /dev/shm
|
||||||
|
Loading…
Reference in New Issue
Block a user