aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-07-24 18:01:07 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-07-24 18:01:07 +0000
commit1486a0402c84f7e1a12f4bd07c5f42eb59171810 (patch)
treefb810c1491ebc2b2c9cbf615f108c6f86d1b7259
parentMinor thinko in devpts check. (diff)
downloadgenkernel-1486a0402c84f7e1a12f4bd07c5f42eb59171810.tar.gz
genkernel-1486a0402c84f7e1a12f4bd07c5f42eb59171810.tar.bz2
genkernel-1486a0402c84f7e1a12f4bd07c5f42eb59171810.zip
Flip awk return values.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--ChangeLog3
-rwxr-xr-xdefaults/initrd.scripts4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 10f8cfa..1fae6f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
# $Id$
24 Jul 2012; Robin H. Johnson <robbat2@gentoo.org> defaults/initrd.scripts:
+ Flip awk return values.
+
+ 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:
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 814919b..ac32c8a 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -307,13 +307,13 @@ mount_devfs () {
fi
# Options copied from /etc/init.d/udev-mount, should probably be kept in sync
- if awk 'BEGIN{m=1;} /devtmpfs/{if($3 == "devtmpfs") {m=0;} } END { exit m;}' /proc/mounts; then
+ if awk 'BEGIN{m=0;} /devtmpfs/{if($3 == "devtmpfs") {m=1;} } END { exit m;}' /proc/mounts; then
mount -t $devfs -o "exec,nosuid,mode=0755,size=10M" udev /dev \
|| bad_msg "Failed to mount /dev as ${devfs}"
fi
# http://git.busybox.net/busybox/plain/docs/mdev.txt
- if awk 'BEGIN{m=1;} /devpts/{if($3 == "devpts") {m=0;} } END { exit m;}' /proc/mounts; then
+ if awk 'BEGIN{m=0;} /devpts/{if($3 == "devpts") {m=1;} } 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