mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Added alternative location for dmidecode
This commit is contained in:
parent
bdc0f010c1
commit
322c7354d9
@ -772,7 +772,11 @@
|
|||||||
# dmidecode
|
# dmidecode
|
||||||
# Values: VMware Virtual Platform / VirtualBox
|
# Values: VMware Virtual Platform / VirtualBox
|
||||||
if [ "${SHORT}" = "" ]; then
|
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"
|
LogText "Test: trying to guess virtualization with dmidecode"
|
||||||
FIND=`/usr/sbin/dmidecode -s system-product-name | awk '{ print $1 }'`
|
FIND=`/usr/sbin/dmidecode -s system-product-name | awk '{ print $1 }'`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user