fix: correctly check for passthrough smartcard support. close #888 (#1293)

This commit is contained in:
Martin Wimpress 2024-06-24 10:07:35 +01:00 committed by GitHub
parent 7e919dac30
commit b8aabcb892
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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