mirror of https://github.com/CISOfy/lynis.git
Fixing test on kernel major and minor version
This commit is contained in:
parent
59a3c4b536
commit
68da1d2b92
|
@ -346,7 +346,13 @@
|
|||
LINUX_KERNEL_MAJOR=$(echo $OS_KERNELVERSION | ${AWKBINARY} -F. '{print $1}')
|
||||
LINUX_KERNEL_MINOR=$(echo $OS_KERNELVERSION | ${AWKBINARY} -F. '{print $2}')
|
||||
if [ -n "${LINUX_KERNEL_MAJOR}" -a -n "${LINUX_KERNEL_MINOR}" ]; then
|
||||
if [ ${LINUX_KERNEL_MAJOR} -ge 3 -a ${LINUX_KERNEL_MINOR} -ge 3 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
if [ ${LINUX_KERNEL_MAJOR} -ge 3 -a ${LINUX_KERNEL_MINOR} -ge 3 ]; then
|
||||
PREQS_MET="YES";
|
||||
elif [ ${LINUX_KERNEL_MAJOR} -ge 4 ]; then
|
||||
PREQS_MET="YES";
|
||||
else
|
||||
PREQS_MET="NO";
|
||||
fi
|
||||
else
|
||||
PREQS_MET="NO";
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue