Initialize variables and cleanup

This commit is contained in:
Michael Boelen 2016-07-30 16:41:11 +02:00
parent cfdc8228fd
commit 4faaa10a8c
1 changed files with 2 additions and 0 deletions

View File

@ -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
#
#################################################################################