1103: FILE-6430 reports suggestion only when at least one kernel module is not in the blacklist

This commit is contained in:
Pavel Malyshev 2021-01-07 17:29:06 -06:00
parent 0b6f300693
commit fba5120f3f
1 changed files with 2 additions and 2 deletions

View File

@ -820,11 +820,11 @@
LogText "Result: module ${FS} is currently not loaded in the kernel." LogText "Result: module ${FS} is currently not loaded in the kernel."
AddHP 2 3 AddHP 2 3
if IsDebug; then Display --indent 6 --text "- Module ${FS} not loaded (lsmod)" --result OK --color GREEN; fi if IsDebug; then Display --indent 6 --text "- Module ${FS} not loaded (lsmod)" --result OK --color GREEN; fi
FOUND=1
AVAILABLE_MODPROBE_FS="${AVAILABLE_MODPROBE_FS}${FS} "
else else
LogText "Result: module ${FS} is loaded in the kernel" LogText "Result: module ${FS} is loaded in the kernel"
Display --indent 4 --text "- Module $FS loaded in the kernel (lsmod)" --result "FOUND" --color WHITE Display --indent 4 --text "- Module $FS loaded in the kernel (lsmod)" --result "FOUND" --color WHITE
FOUND=1
AVAILABLE_MODPROBE_FS="${AVAILABLE_MODPROBE_FS}${FS} "
fi fi
else else
AddHP 3 3 AddHP 3 3