diff options
author | mboelen <michael@cisofy.com> | 2014-09-19 18:44:04 +0400 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-09-19 18:44:04 +0400 |
commit | 4d062ceb4a906573c6a08df1674b564784be347a (patch) | |
tree | 476bb667b1127ec9f77117858a8200a3e23b616a /lynis | |
parent | d99dbc7406dd6b570e90a41c001fc152c627873f (diff) |
Added detection for machine ID
Diffstat (limited to 'lynis')
-rwxr-xr-x | lynis | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 # ################################################################################# # |