summaryrefslogtreecommitdiff
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2007-05-10 16:54:52 +0000
committerMike Baker <mbm@openwrt.org>2007-05-10 16:54:52 +0000
commit5fa3d90c464413d8cb270614ecb47b58afcb1a17 (patch)
tree87dbc32d7a07fb3592fcf87141e74ca2f5a72ebb /package/base-files/files/sbin
parent3fda1fbf87d631cf54a1fc579fab401f65693fb5 (diff)
downloadmtk-20170518-5fa3d90c464413d8cb270614ecb47b58afcb1a17.zip
mtk-20170518-5fa3d90c464413d8cb270614ecb47b58afcb1a17.tar.gz
mtk-20170518-5fa3d90c464413d8cb270614ecb47b58afcb1a17.tar.bz2
fix bug in mount script
SVN-Revision: 7177
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-xpackage/base-files/files/sbin/mount_root5
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 f1d93ba..1aa7db7 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