Skip to content

Commit ea306ee

Browse files
committed
more usb forwarding fixes
1 parent 0fe984b commit ea306ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎bvm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ To get a fresh VM up and running, use a sequence like this:
13401340
product=$(echo "$usbdev" | awk -F: '{print $2}')
13411341

13421342
#allow non-root qemu uaccess permission to this usb device (https://bbs.archlinux.org/viewtopic.php?id=209185)
1343-
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="'$vendor'", ATTRS{idProduct}=="'$product'", TAG+="uaccess", ENV{UDISKS_IGNORE}="1", ENV{MTP_NO_PROBE}="1", ENV{ID_MTP_DEVICE}="0", DRIVER==""' | sudo tee -a "$udev_file" >/dev/null
1343+
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="'$vendor'", ATTRS{idProduct}=="'$product'", TAG+="uaccess", GROUP="'$USER'", MODE="0660", ENV{UDISKS_IGNORE}="1", ENV{MTP_NO_PROBE}="1", ENV{ID_MTP_DEVICE}="0"' | sudo tee -a "$udev_file" >/dev/null
13441344
usb_forwarding_flags+=(-device usb-host,vendorid=0x$vendor,productid=0x$product,bus=passthrough_xhci.0)
13451345
done
13461346
#now reload udev rules

0 commit comments

Comments
 (0)