Added quotes

This commit is contained in:
Michael Boelen 2020-04-01 16:18:03 +02:00
parent 7e3c9448df
commit f232b4f9bb
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04

View File

@ -668,7 +668,6 @@
# Description : Check for nodirtime option
# Want to contribute to Lynis? Create this test
#
#################################################################################
#
@ -676,7 +675,6 @@
# Description : Check for relatime
# Want to contribute to Lynis? Create this test
#
#################################################################################
#
@ -699,8 +697,8 @@
if [ ${SWAPLEVEL} -gt 60 ]; then
LogText "Result: vm.swappiness=${SWAPLEVEL} meaning that swapping is more frequent than default."
# Check if swap is on a HDD or SDD for frequent swapping
if [ -d /sys/block/${PHYSDISK} ]; then
HDDORSDD=$(${CAT_BINARY} /sys/block/${PHYSDISK}/queue/rotational)
if [ -d "/sys/block/${PHYSDISK}" ]; then
HDDORSDD=$(${CAT_BINARY} "/sys/block/${PHYSDISK}/queue/rotational")
if [ ${HDDORSDD} -eq 1 ]; then
ReportSuggestion "${TEST_NO}" "vm.swappiness set to: ${SWAPLEVEL} > 60 (default) - consider installing an SSD for swap partition for better performance."
fi
@ -717,6 +715,7 @@
else
LogText "Result: vm.swappiness=${SWAPLEVEL} which is the standard level of swappiness and works well for desktop systems."
fi
if IsVerbose; then Display --indent 2 --text "- Swappiness: ${SWAPLEVEL}" --result "INFO" --color WHITE; fi
fi
#
#################################################################################