as requested, replace space with _
This commit is contained in:
parent
e8f5d4c340
commit
7b6102750e
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue