Fixed statement to check swap

This commit is contained in:
mboelen 2014-09-08 14:53:44 +02:00
parent c5b9e186e2
commit d983b6ba48
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
# Swap partitions should be mounted with 'sw' or 'swap'
logtext "Test: check swap partitions with incorrect mount options"
FIND=`awk '{ if ($3=="swap" && ($4!="sw" && $4!="swap" $4!="defaults")) print $1 }' /etc/fstab`
FIND=`awk '{ if ($3=="swap" && ($4!="sw" && $4!="swap" && $4!="defaults")) print $1 }' /etc/fstab`
if [ "${FIND}" = "" ]; then
Display --indent 2 --text "- Testing swap partitions..." --result OK --color GREEN
logtext "Result: all swap partitions have correct options (sw or swap)"