aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-07-24 17:28:57 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-07-24 17:29:28 +0000
commitc79d57926f31184c526989d0076b0649ad862039 (patch)
tree6956bf19d8a298e33ff421f391b8f02882909d88 /defaults
parentPrior commit to only mount devtmpfs and devpts if they were not already mount... (diff)
downloadgenkernel-c79d57926f31184c526989d0076b0649ad862039.tar.gz
genkernel-c79d57926f31184c526989d0076b0649ad862039.tar.bz2
genkernel-c79d57926f31184c526989d0076b0649ad862039.zip
Minor thinko in devpts check.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'defaults')
-rwxr-xr-xdefaults/initrd.scripts2
1 files changed, 1 insertions, 1 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index fb64f84b..814919b1 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -313,7 +313,7 @@ mount_devfs () {
fi
# http://git.busybox.net/busybox/plain/docs/mdev.txt
- if awk 'BEGIN{m=1;} /devtmpfs/{if($3 == "devpts") {m=0;} } END { exit m;}' /proc/mounts; then
+ if awk 'BEGIN{m=1;} /devpts/{if($3 == "devpts") {m=0;} } END { exit m;}' /proc/mounts; then
mkdir -m 0755 /dev/pts
mount -t devpts -o gid=5,mode=0620 devpts /dev/pts || bad_msg "Failed to mount /dev/pts"
fi