diff options
author | Mike Baker <mbm@openwrt.org> | 2007-05-10 16:54:52 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2007-05-10 16:54:52 +0000 |
commit | 5fa3d90c464413d8cb270614ecb47b58afcb1a17 (patch) | |
tree | 87dbc32d7a07fb3592fcf87141e74ca2f5a72ebb /package/base-files/files/sbin/mount_root | |
parent | 3fda1fbf87d631cf54a1fc579fab401f65693fb5 (diff) | |
download | upstream-5fa3d90c464413d8cb270614ecb47b58afcb1a17.tar.gz upstream-5fa3d90c464413d8cb270614ecb47b58afcb1a17.tar.bz2 upstream-5fa3d90c464413d8cb270614ecb47b58afcb1a17.zip |
fix bug in mount script
SVN-Revision: 7177
Diffstat (limited to 'package/base-files/files/sbin/mount_root')
-rwxr-xr-x | package/base-files/files/sbin/mount_root | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/mount_root b/package/base-files/files/sbin/mount_root index f1d93bafc3..1aa7db7255 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 -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 |