mirror of https://github.com/CISOfy/lynis.git
Add OS to 'show eol' and make output easier to parse
This commit is contained in:
parent
27cdcec741
commit
1f8b5fafde
|
@ -265,14 +265,15 @@ if [ $# -gt 0 ]; then
|
|||
fi
|
||||
;;
|
||||
"eol")
|
||||
${ECHOCMD} "Operating-system=${OS_FULLNAME}"
|
||||
if [ ${EOL} -eq 0 ]; then
|
||||
${ECHOCMD} "OS end-of-life: No"
|
||||
${ECHOCMD} "End-of-life=No"
|
||||
elif [ ${EOL} -eq 1 ]; then
|
||||
${ECHOCMD} "OS end-of-life: Yes"
|
||||
${ECHOCMD} "End-of-life=Yes"
|
||||
elif [ ${EOL} -eq 255 ]; then
|
||||
${ECHOCMD} "OS end-of-life: Not tested"
|
||||
${ECHOCMD} "End-of-life=Not tested"
|
||||
else
|
||||
${ECHOCMD} "OS end-of-life: Unknown"
|
||||
${ECHOCMD} "End-of-life=Unknown"
|
||||
fi
|
||||
;;
|
||||
"groups")
|
||||
|
|
Loading…
Reference in New Issue