Minor thinko in devpts check.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
cleanup-cruft
Robin H. Johnson 13 years ago
parent c924bde4b7
commit c79d57926f

@ -4,7 +4,10 @@
# - 2008-2011 Various authors (see AUTHORS) # - 2008-2011 Various authors (see AUTHORS)
# Distributed under the GPL v2 # Distributed under the GPL v2
# $Id$ # $Id$
24 Jul 2012; Robin H. Johnson <robbat2@gentoo.org> defaults/initrd.scripts:
Minor thinko in devpts check.
24 Jul 2012; Robin H. Johnson <robbat2@gentoo.org> defaults/initrd.scripts: 24 Jul 2012; Robin H. Johnson <robbat2@gentoo.org> defaults/initrd.scripts:
Prior commit to only mount devtmpfs and devpts if they were not already Prior commit to only mount devtmpfs and devpts if they were not already
mounted made assumptions about the device names they were mounted as. Check mounted made assumptions about the device names they were mounted as. Check

@ -313,7 +313,7 @@ mount_devfs () {
fi fi
# http://git.busybox.net/busybox/plain/docs/mdev.txt # 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 mkdir -m 0755 /dev/pts
mount -t devpts -o gid=5,mode=0620 devpts /dev/pts || bad_msg "Failed to mount /dev/pts" mount -t devpts -o gid=5,mode=0620 devpts /dev/pts || bad_msg "Failed to mount /dev/pts"
fi fi

Loading…
Cancel
Save