Explore machine type for virtualbox guest
This commit is contained in:
parent
acf3b3575a
commit
a6643f0d7f
1 changed files with 6 additions and 5 deletions
|
@ -48,11 +48,12 @@ if [ -r /proc/cpuinfo ]; 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
|
elif 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
|
elif grep -q -i 'virtualbox' /sys/class/dmi/id/product_name; then
|
||||||
|
echo "virtual_by_virtualbox"
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue