From 9ac49a94d250f82a72f4591cfb06124d7e674120 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 5 Oct 2021 00:01:51 +0100 Subject: [PATCH] Make nested case statements easier to follow --- quickemu | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/quickemu b/quickemu index 545c3ce..1c2cf91 100755 --- a/quickemu +++ b/quickemu @@ -309,9 +309,6 @@ function vm_boot() { echo "ERROR! macOS requires a CPU with SSE 4.1 and AVX2 support." exit 1 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 # common supported options if none is specificed. @@ -341,7 +338,9 @@ function vm_boot() { USB_HOST_PASSTHROUGH_CONTROLLER="usb-ehci" ;; 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) 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"