2017-06-09 00:26:55 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# script to disable USB passthru in /etc/udev/rules.d/60-vboxdrv.rules
|
|
|
|
# if already disabled, clear the comment character
|
2023-02-03 01:11:22 +01:00
|
|
|
sed -i 's/#SUBSYSTEM==\"usb/SUBSYSTEM==\"usb/' /usr/lib/udev/rules.d/60-vboxdrv.rules
|
2017-06-09 00:26:55 +02:00
|
|
|
# now comment the usb lines
|
2023-02-03 01:11:22 +01:00
|
|
|
sed -i 's/SUBSYSTEM==\"usb/#SUBSYSTEM==\"usb/' /usr/lib/udev/rules.d/60-vboxdrv.rules
|
2017-06-09 00:26:55 +02:00
|
|
|
|