From 322c7354d9177c4e36b0beebd423905595361444 Mon Sep 17 00:00:00 2001 From: mboelen Date: Wed, 16 Mar 2016 10:54:49 +0100 Subject: [PATCH] Added alternative location for dmidecode --- include/functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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