projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3fda1fb
)
fix bug in mount script
author
Mike Baker
<mbm@openwrt.org>
Thu, 10 May 2007 16:54:52 +0000
(16:54 +0000)
committer
Mike Baker
<mbm@openwrt.org>
Thu, 10 May 2007 16:54:52 +0000
(16:54 +0000)
SVN-Revision: 7177
package/base-files/files/sbin/mount_root
patch
|
blob
|
history
diff --git
a/package/base-files/files/sbin/mount_root
b/package/base-files/files/sbin/mount_root
index f1d93bafc3cd6e415a712ee8d6c7fc3c43cbaa12..1aa7db7255bbbea4129490c18056c454ddc94cdf 100755
(executable)
--- 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
# 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)
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
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
# 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