use ${LSMODBINARY} instead of lsmod (#199)

Use detected lsmod binary instead of calling it directly.
This commit is contained in:
Yann ILAS 2016-05-19 17:24:49 +02:00 committed by Michael Boelen
parent bc313949c8
commit 770605e4c6

View File

@ -207,7 +207,7 @@
Register --test-no KRNL-5726 --os Linux --weight L --network NO --description "Checking Linux loaded kernel modules"
if [ ${SKIPTEST} -eq 0 ]; then
if [ ! "${LSMODBINARY}" = "" -a -f /proc/modules ]; then
FIND=`lsmod | awk '{ if ($1!="Module") print $1 }' | sort`
FIND=`${LSMODBINARY} | awk '{ if ($1!="Module") print $1 }' | sort`
Display --indent 2 --text "- Checking loaded kernel modules" --result DONE --color GREEN
if [ ! "${FIND}" = "" ]; then
LogText "Loaded modules according lsmod:"