Check whether smartcard is supported
This commit is contained in:
parent
c9df8f3b32
commit
6216adf6a8
7
quickemu
7
quickemu
|
@ -983,10 +983,13 @@ function vm_boot() {
|
|||
-device usb-redir,chardev=usbredirchardev3,id=usbredirdev3
|
||||
-device pci-ohci,id=smartpass
|
||||
-device usb-ccid
|
||||
-chardev spicevmc,id=ccid,name=smartcard
|
||||
-device ccid-card-passthru,chardev=ccid
|
||||
)
|
||||
|
||||
if "${QEMU}" -chardev spicevmc,id=ccid,name= 2>&1 | grep -q smartcard; then
|
||||
args+=(-chardev spicevmc,id=ccid,name=smartcard
|
||||
-device ccid-card-passthru,chardev=ccid)
|
||||
fi
|
||||
|
||||
# setup usb-controller
|
||||
[ -z "${USB_CONTROLLER}" ] && USB_CONTROLLER="$usb_controller"
|
||||
if [ "${USB_CONTROLLER}" == "ehci" ]; then
|
||||
|
|
Loading…
Reference in New Issue