mirror of https://github.com/CISOfy/lynis.git
Set fixed dmidecode location
This commit is contained in:
parent
b8df6c4204
commit
bdc0f010c1
|
@ -774,7 +774,7 @@
|
|||
if [ "${SHORT}" = "" ]; then
|
||||
if [ -x /usr/sbin/dmidecode ]; then
|
||||
LogText "Test: trying to guess virtualization with dmidecode"
|
||||
FIND=`dmidecode -s system-product-name | awk '{ print $1 }'`
|
||||
FIND=`/usr/sbin/dmidecode -s system-product-name | awk '{ print $1 }'`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
LogText "Result: found ${FIND}"
|
||||
SHORT="${FIND}"
|
||||
|
|
Loading…
Reference in New Issue