mirror of https://github.com/CISOfy/lynis.git
Initialize variables and cleanup
This commit is contained in:
parent
cfdc8228fd
commit
4faaa10a8c
|
@ -688,6 +688,7 @@
|
|||
LIST_FS_NOT_SUPPORTED="cramfs freevxfs hfs hfsplus jffs2 squashfs udf"
|
||||
FOUND=0
|
||||
AVAILABLE_FS=""
|
||||
AVAILABLE_MODPROBE_FS=""
|
||||
for FS in ${LIST_FS_NOT_SUPPORTED}; do
|
||||
# Check if filesystem is present in modprobe output
|
||||
FIND=`${MODPROBEBINARY} -v -n $FS 2>/dev/null | ${EGREPBINARY} "/${FS}.ko" | tail -1`
|
||||
|
@ -720,6 +721,7 @@
|
|||
else
|
||||
LogText "Test skipped lsmod binary not found or /proc/modules can not be opened"
|
||||
fi
|
||||
unset AVAILABLE_FS AVAILABLE_MODPROBE_FS
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
|
|
Loading…
Reference in New Issue