as requested, replace space with _

This commit is contained in:
Daniel Heule 2014-03-26 11:57:15 +01:00
parent e8f5d4c340
commit 7b6102750e
1 changed files with 4 additions and 4 deletions

View File

@ -29,23 +29,23 @@ if [ -r /proc/cpuinfo ]; then
# this file is aviable in xen guest systems
if [ -r /sys/hypervisor/type ]; then
if grep -q -i "xen" /sys/hypervisor/type; then
echo virtual by xen
echo virtual_by_xen
exit
fi
else
if [ -r /sys/class/dmi/id/product_name ]; then
if grep -q -i 'vmware' /sys/class/dmi/id/product_name; then
echo "virtual by vmware"
echo "virtual_by_vmware"
exit
else
if grep -q -i 'bochs' /sys/class/dmi/id/product_name; then
echo "virtual by kvm"
echo "virtual_by_kvm"
exit
fi
fi
fi
fi
echo "virtual by unknown"
echo "virtual_by_unknown"
else
echo "physical"
fi