Add host CPU vendor detection

This commit is contained in:
Martin Wimpress 2021-09-27 22:46:26 +01:00
parent 0237499331
commit 3a86f6c2dd
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -147,6 +147,7 @@ function vm_boot() {
local DISPLAY_DEVICE=""
local GL="on"
local GUEST_TWEAKS=""
local HOST_CPU=""
local OSK=""
local QEMU_VER=""
local VIDEO=""
@ -188,6 +189,9 @@ function vm_boot() {
# Force to lowercase.
guest_os=${guest_os,,}
HOST_CPU=$(grep vendor /proc/cpuinfo | uniq | cut -d':' -f2 | sed 's/ //g')
# Make any OS specific adjustments
case ${guest_os} in
linux)