Skip to content
Snippets Groups Projects
Commit 4b39a669 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Understand comments in /etc/fstab.

parent 53b2f145
No related branches found
No related tags found
No related merge requests found
......@@ -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 }' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment