Make nested case statements easier to follow

This commit is contained in:
Martin Wimpress 2021-10-05 00:01:51 +01:00
parent 199952a13e
commit 9ac49a94d2
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -309,9 +309,6 @@ function vm_boot() {
echo "ERROR! macOS requires a CPU with SSE 4.1 and AVX2 support." echo "ERROR! macOS requires a CPU with SSE 4.1 and AVX2 support."
exit 1 exit 1
fi fi
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m')
GUEST_TWEAKS="-device isa-applesmc,osk=${OSK} -no-hpet -global kvm-pit.lost_tick_policy=discard"
disk="64G"
# Tune Qemu optimisations based on the macOS release, or fallback to lowest # Tune Qemu optimisations based on the macOS release, or fallback to lowest
# common supported options if none is specificed. # common supported options if none is specificed.
@ -341,7 +338,9 @@ function vm_boot() {
USB_HOST_PASSTHROUGH_CONTROLLER="usb-ehci" USB_HOST_PASSTHROUGH_CONTROLLER="usb-ehci"
;; ;;
esac esac
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m')
GUEST_TWEAKS="-device isa-applesmc,osk=${OSK} -no-hpet -global kvm-pit.lost_tick_policy=discard"
disk_size="64G"
;; ;;
windows) windows)
CPU="-cpu host,kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_frequencies,kvm_pv_unhalt,hv_reenlightenment,hv_relaxed,hv_spinlocks=8191,hv_stimer,hv_synic,hv_time,hv_vapic,hv_vendor_id=1234567890ab,hv_vpindex" CPU="-cpu host,kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_frequencies,kvm_pv_unhalt,hv_reenlightenment,hv_relaxed,hv_spinlocks=8191,hv_stimer,hv_synic,hv_time,hv_vapic,hv_vendor_id=1234567890ab,hv_vpindex"