mirror of https://github.com/CISOfy/lynis.git
Added alternative location for dmidecode
This commit is contained in:
parent
bdc0f010c1
commit
322c7354d9
|
@ -772,7 +772,11 @@
|
|||
# dmidecode
|
||||
# Values: VMware Virtual Platform / VirtualBox
|
||||
if [ "${SHORT}" = "" ]; then
|
||||
if [ -x /usr/sbin/dmidecode ]; then
|
||||
if [ -x /usr/bin/dmidecode ]; then DMIDECODE_BINARY="/usr/bin/dmidecode"
|
||||
elif [ -x /usr/sbin/dmidecode ]; then DMIDECODE_BINARY="/usr/sbin/dmidecode"
|
||||
else DMIDECODE_BINARY=""
|
||||
fi
|
||||
if [ ! "${DMIDECODE_BINARY}" = "" ]; then
|
||||
LogText "Test: trying to guess virtualization with dmidecode"
|
||||
FIND=`/usr/sbin/dmidecode -s system-product-name | awk '{ print $1 }'`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
|
|
Loading…
Reference in New Issue