From c83dc45b1149259c5b2c1e95e8c66360634c12d2 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 13 May 2024 17:14:12 +0100 Subject: [PATCH] refactor: derive macOS OSK inline --- quickemu | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/quickemu b/quickemu index d97c0ab..3c39601 100755 --- a/quickemu +++ b/quickemu @@ -257,7 +257,6 @@ function vm_boot() { local MAC_MISSING="" local MAC_DISK_DEV="${MAC_DISK_DEV:-ide-hd,bus=ahci.2}" local NET_DEVICE="${NET_DEVICE:-virtio-net}" - local OSK="" local SOUND="" local SMM="${SMM:-off}" local TEMP_PORT="" @@ -583,9 +582,8 @@ function vm_boot() { fi done - OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m') # Disable S3 support in the VM to prevent macOS suspending during install - GUEST_TWEAKS="-global kvm-pit.lost_tick_policy=discard -global ICH9-LPC.disable_s3=1 -device isa-applesmc,osk=${OSK}" + GUEST_TWEAKS="-global kvm-pit.lost_tick_policy=discard -global ICH9-LPC.disable_s3=1 -device isa-applesmc,osk=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m')" # Disable High Precision Timer if [ "${QEMU_VER_SHORT}" -ge 70 ]; then