summarylogtreecommitdiffstats
path: root/10-vboxdrv.rules
diff options
context:
space:
mode:
authorYurii Kolesnykov2018-11-17 12:31:28 +0100
committerYurii Kolesnykov2018-11-17 12:31:28 +0100
commiteb76aee12ada05dfe93f6b4e108fd888f3b7d0a5 (patch)
tree5249391e353053efaedd39baf162bd648609f2fc /10-vboxdrv.rules
downloadaur-eb76aee12ada05dfe93f6b4e108fd888f3b7d0a5.tar.gz
init,6.0.0.126642
Diffstat (limited to '10-vboxdrv.rules')
-rw-r--r--10-vboxdrv.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/10-vboxdrv.rules b/10-vboxdrv.rules
new file mode 100644
index 00000000000..12b7ab57afc
--- /dev/null
+++ b/10-vboxdrv.rules
@@ -0,0 +1,5 @@
+KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
+SUBSYSTEM=="usb_device", ACTION=="add", RUN="VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
+SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
+SUBSYSTEM=="usb_device", ACTION=="remove", RUN="VBoxCreateUSBNode.sh --remove $major $minor"
+SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="VBoxCreateUSBNode.sh --remove $major $minor"