mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Set fixed dmidecode location
This commit is contained in:
parent
b8df6c4204
commit
bdc0f010c1
@ -774,7 +774,7 @@
|
|||||||
if [ "${SHORT}" = "" ]; then
|
if [ "${SHORT}" = "" ]; then
|
||||||
if [ -x /usr/sbin/dmidecode ]; then
|
if [ -x /usr/sbin/dmidecode ]; then
|
||||||
LogText "Test: trying to guess virtualization with dmidecode"
|
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
|
if [ ! "${FIND}" = "" ]; then
|
||||||
LogText "Result: found ${FIND}"
|
LogText "Result: found ${FIND}"
|
||||||
SHORT="${FIND}"
|
SHORT="${FIND}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user