From b8aabcb8923d0a42f67005f51cd11cc9a4301b36 Mon Sep 17 00:00:00 2001 From: Martin Wimpress <304639+flexiondotorg@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:07:35 +0100 Subject: [PATCH] fix: correctly check for passthrough smartcard support. close #888 (#1293) --- quickemu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index d3806f3..9a0f4cc 100755 --- a/quickemu +++ b/quickemu @@ -1211,12 +1211,12 @@ function vm_boot() { -device pci-ohci,id=smartpass -device usb-ccid) - if ${QEMU} -device help | grep -q smartcard; then + if ${QEMU} -device help | grep -q "passthrough smartcard"; then # shellcheck disable=SC2054 args+=(-chardev spicevmc,id=ccid,name=smartcard -device ccid-card-passthru,chardev=ccid) else - echo " - WARNING! ${QEMU} was not compiled with support for smartcard devices" + echo " - WARNING! ${QEMU} or SPICE was not compiled with support for smartcard devices" fi fi