Add OS to 'show eol' and make output easier to parse

This commit is contained in:
Michael Boelen 2020-03-20 14:57:56 +01:00
parent 27cdcec741
commit 1f8b5fafde
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 5 additions and 4 deletions

View File

@ -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")