Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2020-03-20 16:57:56 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-03-20 16:57:56 +0300
commit1f8b5fafde1fb5dd4f8c5231240e3a8cf1afa39f (patch)
treea15ba853c45c797cf0a0b52d37a4e68303980b9f /include/helper_show
parent27cdcec7416a4869e166a00432fe880165a831a6 (diff)
Add OS to 'show eol' and make output easier to parse
Diffstat (limited to 'include/helper_show')
-rw-r--r--include/helper_show9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/helper_show b/include/helper_show
index 3e1b130c..b78da175 100644
--- a/include/helper_show
+++ b/include/helper_show
@@ -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")