Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-03-16 12:54:49 +0300
committermboelen <michael@cisofy.com>2016-03-16 12:54:49 +0300
commit322c7354d9177c4e36b0beebd423905595361444 (patch)
tree1c78c86d7d12315b5ce20cfab065349729b67d89
parentbdc0f010c17c4ed6397033023de74732ba0b05ae (diff)
Added alternative location for dmidecode
-rw-r--r--include/functions6
1 files changed, 5 insertions, 1 deletions
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