diff --git a/include/functions b/include/functions index 8da62b1a..6c19d145 100644 --- a/include/functions +++ b/include/functions @@ -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