mirror of https://github.com/CISOfy/lynis.git
[KRNL-5830] improved text in log
This commit is contained in:
parent
696cdbfbf1
commit
1bf09ad60a
|
@ -584,14 +584,14 @@
|
||||||
for I in ${KERNELS}; do
|
for I in ${KERNELS}; do
|
||||||
# Check if we already found a kernel and it is not equal to what we run (e.g. double versions may exist)
|
# Check if we already found a kernel and it is not equal to what we run (e.g. double versions may exist)
|
||||||
if [ ${FOUND_KERNEL} -eq 1 -a ! "${MYKERNEL}" = "${I}" ]; then
|
if [ ${FOUND_KERNEL} -eq 1 -a ! "${MYKERNEL}" = "${I}" ]; then
|
||||||
LogText "Result: found a kernel (${I}) later than running one (${MYKERNEL})"
|
LogText "Result: found a kernel (${I}) later than active kernel (${MYKERNEL})"
|
||||||
REBOOT_NEEDED=1
|
REBOOT_NEEDED=1
|
||||||
fi
|
fi
|
||||||
if [ "${MYKERNEL}" = "${I}" ]; then
|
if [ "${MYKERNEL}" = "${I}" ]; then
|
||||||
FOUND_KERNEL=1
|
FOUND_KERNEL=1
|
||||||
LogText "Result: Found ${I} (= our kernel)"
|
LogText "Result: found ${I} (= active kernel)"
|
||||||
else
|
else
|
||||||
LogText "Result: Found ${I}"
|
LogText "Result: found ${I}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# Check if we at least found the kernel on disk
|
# Check if we at least found the kernel on disk
|
||||||
|
@ -600,7 +600,7 @@
|
||||||
else
|
else
|
||||||
# If we are not sure yet reboot it needed, but we found running kernel as last one on disk, we run latest kernel
|
# If we are not sure yet reboot it needed, but we found running kernel as last one on disk, we run latest kernel
|
||||||
if [ ${REBOOT_NEEDED} -eq 2 ]; then
|
if [ ${REBOOT_NEEDED} -eq 2 ]; then
|
||||||
LogText "Result: we found our kernel on disk as last entry, so seems to be up-to-date"
|
LogText "Result: found the running kernel on disk being the last entry, so it looks up-to-date"
|
||||||
REBOOT_NEEDED=0
|
REBOOT_NEEDED=0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue