summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox-bin/files/10-virtualbox.rules
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-10-22 17:53:24 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-10-22 17:53:24 +0100
commitdd3cd4a694d79a130337c15b950cade18a607cb3 (patch)
tree871250963cf0d3ddbd56be5561b4fb970e376791 /app-emulation/virtualbox-bin/files/10-virtualbox.rules
parenteca4e32875f0251c3f2413e94cda464d8f175884 (diff)
sync vbox
Diffstat (limited to 'app-emulation/virtualbox-bin/files/10-virtualbox.rules')
-rw-r--r--app-emulation/virtualbox-bin/files/10-virtualbox.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-bin/files/10-virtualbox.rules b/app-emulation/virtualbox-bin/files/10-virtualbox.rules
new file mode 100644
index 00000000..014c164a
--- /dev/null
+++ b/app-emulation/virtualbox-bin/files/10-virtualbox.rules
@@ -0,0 +1,7 @@
+# create second tree of USB devices according to
+# http://www.virtualbox.org/ticket/7759#comment:5
+
+SUBSYSTEM=="usb_device", ACTION!="remove", RUN="%UDEVDIR%/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
+SUBSYSTEM=="usb", ACTION!="remove", ENV{DEVTYPE}=="usb_device", RUN="%UDEVDIR%/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
+SUBSYSTEM=="usb_device", ACTION=="remove", RUN="%UDEVDIR%/VBoxCreateUSBNode.sh --remove $major $minor"
+SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="%UDEVDIR%/VBoxCreateUSBNode.sh --remove $major $minor"