mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 00:04:16 +02:00
Added quotes
This commit is contained in:
parent
7e3c9448df
commit
f232b4f9bb
@ -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
|
||||
#
|
||||
#################################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user