mirror of https://github.com/CISOfy/lynis.git
Added HP-UX routine for GetHostID
This commit is contained in:
parent
db8f259676
commit
9d238f6e78
|
@ -867,6 +867,19 @@
|
|||
fi
|
||||
;;
|
||||
|
||||
"HP-UX")
|
||||
FIND=$(nwmgr -q info -c lan0 2> /dev/null | awk '{ if ($1=="MAC" && $2=="Address") { print $4 }}')
|
||||
if HasData "${FIND}"; then
|
||||
if [ ! -z "${OPENSSLBINARY}" ]; then
|
||||
HOSTID=$(echo ${FIND} | ${OPENSSLBINARY} sha -sha1 | awk '{ print $2 }')
|
||||
else
|
||||
ReportException "GetHostID" "No openssl binary available on this HP-UX system"
|
||||
fi
|
||||
else
|
||||
ReportException "GetHostID" "No MAC address found by using nwmgr"
|
||||
fi
|
||||
;;
|
||||
|
||||
"Linux")
|
||||
# Define preferred interfaces
|
||||
#PREFERRED_INTERFACES="eth0 eth1 eth2 enp0s25"
|
||||
|
|
Loading…
Reference in New Issue