summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin/mount_root
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-10 16:54:52 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-10 16:54:52 +0000
commit9c0d199275f54f1b1f1e972f6cdcda067c941e88 (patch)
tree64aab4840f81e3ef7a4800c4ac9416e743971876 /package/base-files/files/sbin/mount_root
parent3c976d44328e065945d327ed87ad4b03dc1ff8f4 (diff)
fix bug in mount script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7177 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/sbin/mount_root')
-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 f1d93bafc..1aa7db725 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