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
|
# this file is aviable in xen guest systems
|
||||||
if [ -r /sys/hypervisor/type ]; then
|
if [ -r /sys/hypervisor/type ]; then
|
||||||
if grep -q -i "xen" /sys/hypervisor/type; then
|
if grep -q -i "xen" /sys/hypervisor/type; then
|
||||||
echo virtual by xen
|
echo virtual_by_xen
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -r /sys/class/dmi/id/product_name ]; then
|
if [ -r /sys/class/dmi/id/product_name ]; then
|
||||||
if grep -q -i 'vmware' /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
|
exit
|
||||||
else
|
else
|
||||||
if grep -q -i 'bochs' /sys/class/dmi/id/product_name; then
|
if grep -q -i 'bochs' /sys/class/dmi/id/product_name; then
|
||||||
echo "virtual by kvm"
|
echo "virtual_by_kvm"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "virtual by unknown"
|
echo "virtual_by_unknown"
|
||||||
else
|
else
|
||||||
echo "physical"
|
echo "physical"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue