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
path: root/lynis
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-09-19 18:44:04 +0400
committermboelen <michael@cisofy.com>2014-09-19 18:44:04 +0400
commit4d062ceb4a906573c6a08df1674b564784be347a (patch)
tree476bb667b1127ec9f77117858a8200a3e23b616a /lynis
parentd99dbc7406dd6b570e90a41c001fc152c627873f (diff)
Added detection for machine ID
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis7
1 files changed, 7 insertions, 0 deletions
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
#
#################################################################################
#