From 3b93e7008f84e49e9ab07104eb0870d91247e617 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Wed, 12 Jul 2023 18:01:43 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20:=20all=C3=A8gement=20du=20script?= =?UTF-8?q?=20de=20lancement=20de=20la=20machine=20virtuelle=20Windows=201?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- share/qemu/bin/windows10 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/share/qemu/bin/windows10 b/share/qemu/bin/windows10 index 846d51b..de9ddb0 100755 --- a/share/qemu/bin/windows10 +++ b/share/qemu/bin/windows10 @@ -1,17 +1,16 @@ #!/bin/sh -ex -realpath="$(readlink -f "$0")" -realname="$(basename "$realpath")" -cd "$(dirname "$realpath")/.." -exec screen -S "QEMU : ${realname}" -d -m qemu-system-x86_64 \ +name="$(basename "$0")" +cd "$(dirname "$(readlink -f "$0")")/.." +exec screen -S "QEMU : ${name}" -d -m qemu-system-x86_64 \ -monitor stdio -enable-kvm -display gtk,zoom-to-fit=on \ -bios /usr/share/edk2/x64/OVMF_CODE.fd \ -usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=1452 \ -cpu host -smp "$(nproc)" \ -m 4G \ -drive "file=images/$(basename "$0").qcow2,if=virtio" \ - -net nic -net "user,hostname=${realname}" \ + -net nic -net "user,hostname=${name}" \ -audiodev pa,id=snd0 -device ich9-intel-hda -device hda-output,audiodev=snd0 \ -usbdevice tablet \ - -name "$realname" \ + -name "$name" \ "$@"