Added detection for machine ID

This commit is contained in:
mboelen 2014-09-19 16:44:04 +02:00
parent d99dbc7406
commit 4d062ceb4a
1 changed files with 7 additions and 0 deletions

7
lynis
View File

@ -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
#
#################################################################################
#