Add warning when quickemu does not support smartcard

Co-authored-by: Phil Clifford <philclifford@users.noreply.github.com>
This commit is contained in:
Liam 2024-01-08 15:13:51 -08:00 committed by Martin Wimpress
parent 6216adf6a8
commit b3802a356e
1 changed files with 2 additions and 0 deletions

View File

@ -988,6 +988,8 @@ function vm_boot() {
if "${QEMU}" -chardev spicevmc,id=ccid,name= 2>&1 | grep -q smartcard; then if "${QEMU}" -chardev spicevmc,id=ccid,name= 2>&1 | grep -q smartcard; then
args+=(-chardev spicevmc,id=ccid,name=smartcard args+=(-chardev spicevmc,id=ccid,name=smartcard
-device ccid-card-passthru,chardev=ccid) -device ccid-card-passthru,chardev=ccid)
else
echo "WARNING! ${QEMU} was not compiled with support for smartcard devices"
fi fi
# setup usb-controller # setup usb-controller