fix bug in mount script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7177 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
46201c4ab4
commit
c8e4a613e8
|
@ -2,8 +2,6 @@
|
|||
# Copyright (C) 2006 OpenWrt.org
|
||||
. /etc/functions.sh
|
||||
|
||||
mkdir -p /dev/pts /dev/shm
|
||||
mount none /dev/pts -t devpts
|
||||
mount none /proc -t proc
|
||||
|
||||
size=$(awk '/MemTotal:/ {l=5242880;mt=($2*1024);print((s=mt/2)<l)?mt-l:s}' /proc/meminfo)
|
||||
|
@ -25,6 +23,9 @@ else
|
|||
HOTPLUG=
|
||||
fi
|
||||
|
||||
mkdir -p /dev/pts /dev/shm
|
||||
mount none /dev/pts -t devpts
|
||||
|
||||
# the shell really doesn't like having stdin/out closed
|
||||
# that's why we use /dev/pty/m0 and m1 as replacement
|
||||
# for /dev/console if there's no serial console available
|
||||
|
|
Loading…
Reference in New Issue