as requested, replace space with _

remotes/origin/feature_files_export
Daniel Heule 11 years ago
parent e8f5d4c340
commit 7b6102750e
  1. 8
      cdist/conf/explorer/machine_type

@ -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…
Cancel
Save