fix bug in mount script

SVN-Revision: 7177
This commit is contained in:
Mike Baker 2007-05-10 16:54:52 +00:00
parent 3fda1fbf87
commit 5fa3d90c46

View file

@ -2,8 +2,6 @@
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006 OpenWrt.org
. /etc/functions.sh . /etc/functions.sh
mkdir -p /dev/pts /dev/shm
mount none /dev/pts -t devpts
mount none /proc -t proc 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)
@ -25,6 +23,9 @@ else
HOTPLUG= HOTPLUG=
fi fi
mkdir -p /dev/pts /dev/shm
mount none /dev/pts -t devpts
# the shell really doesn't like having stdin/out closed # the shell really doesn't like having stdin/out closed
# that's why we use /dev/pty/m0 and m1 as replacement # that's why we use /dev/pty/m0 and m1 as replacement
# for /dev/console if there's no serial console available # for /dev/console if there's no serial console available