From 4d062ceb4a906573c6a08df1674b564784be347a Mon Sep 17 00:00:00 2001 From: mboelen Date: Fri, 19 Sep 2014 16:44:04 +0200 Subject: [PATCH] Added detection for machine ID --- lynis | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lynis b/lynis index 7ac1c2a7..4a2f1798 100755 --- a/lynis +++ b/lynis @@ -451,6 +451,7 @@ RemovePIDFile exit 1 fi + logtextbreak logtext "### ${PROGRAM_copyright} ###" # Clear report file (to avoid appending to an existing file) @@ -684,6 +685,12 @@ else logtext "Info: no HostID found or invalid one" fi + if [ ! "${MACHINEID}" = "" ]; then + logtext "Info: found a machine ID ${MACHINEID}" + report "machineid=${MACHINEID}" + else + logtext "Info: no machine ID found" + fi # ################################################################################# #