Added detection for machine ID

This commit is contained in:
mboelen 2014-09-19 16:44:04 +02:00
parent d99dbc7406
commit 4d062ceb4a

7
lynis
View File

@ -451,6 +451,7 @@
RemovePIDFile RemovePIDFile
exit 1 exit 1
fi fi
logtextbreak
logtext "### ${PROGRAM_copyright} ###" logtext "### ${PROGRAM_copyright} ###"
# Clear report file (to avoid appending to an existing file) # Clear report file (to avoid appending to an existing file)
@ -684,6 +685,12 @@
else else
logtext "Info: no HostID found or invalid one" logtext "Info: no HostID found or invalid one"
fi fi
if [ ! "${MACHINEID}" = "" ]; then
logtext "Info: found a machine ID ${MACHINEID}"
report "machineid=${MACHINEID}"
else
logtext "Info: no machine ID found"
fi
# #
################################################################################# #################################################################################
# #