From 4b39a669c2e3e3013ed9b0b8e33c0c348b4539cc Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Mon, 15 Jan 2007 12:29:12 +0000 Subject: [PATCH] Understand comments in /etc/fstab. --- rules/gentoo/nrpe-host-auto.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/gentoo/nrpe-host-auto.sh b/rules/gentoo/nrpe-host-auto.sh index 584a779..829dc93 100644 --- a/rules/gentoo/nrpe-host-auto.sh +++ b/rules/gentoo/nrpe-host-auto.sh @@ -4,6 +4,7 @@ trap "rm -f $FILESYSTEMS" 0 > $prefix/etc/nrpe-host-auto.cfg awk < /etc/fstab \ '! ($1 ~ /\//) { next } + $1 ~ /^#/ { next } $3 == "swap" || $3 == "nfs" { next } $4 ~ /noauto/ { next } { print $1, $2 }' \ -- GitLab