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
Branches
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ trap "rm -f $FILESYSTEMS" 0 ...@@ -4,6 +4,7 @@ trap "rm -f $FILESYSTEMS" 0
> $prefix/etc/nrpe-host-auto.cfg > $prefix/etc/nrpe-host-auto.cfg
awk < /etc/fstab \ awk < /etc/fstab \
'! ($1 ~ /\//) { next } '! ($1 ~ /\//) { next }
$1 ~ /^#/ { next }
$3 == "swap" || $3 == "nfs" { next } $3 == "swap" || $3 == "nfs" { next }
$4 ~ /noauto/ { next } $4 ~ /noauto/ { next }
{ print $1, $2 }' \ { print $1, $2 }' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment