summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2011-05-08 16:00:55 +0000
committerLars Wendler <polynomial-c@gentoo.org>2011-05-08 16:00:55 +0000
commit09a59e73a9a96a9eede4709dec5e86d06248453a (patch)
treea386d9297e7fc70789425ff8dd239f51b5b6ca53 /app-emulation/virtualbox/files/10-virtualbox.rules
parentDon't install non-functional udev rules anymore. (diff)
downloadgentoo-2-09a59e73a9a96a9eede4709dec5e86d06248453a.tar.gz
gentoo-2-09a59e73a9a96a9eede4709dec5e86d06248453a.tar.bz2
gentoo-2-09a59e73a9a96a9eede4709dec5e86d06248453a.zip
Handle USB devices better (bug #356215)
(Portage version: 2.2.0_alpha31/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/virtualbox/files/10-virtualbox.rules')
-rw-r--r--app-emulation/virtualbox/files/10-virtualbox.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/app-emulation/virtualbox/files/10-virtualbox.rules b/app-emulation/virtualbox/files/10-virtualbox.rules
new file mode 100644
index 000000000000..8efff249f8fc
--- /dev/null
+++ b/app-emulation/virtualbox/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="/lib/udev/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
+SUBSYSTEM=="usb", ACTION!="remove", ENV{DEVTYPE}=="usb_device", RUN="/lib/udev/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
+SUBSYSTEM=="usb_device", ACTION=="remove", RUN="/lib/udev/VBoxCreateUSBNode.sh --remove $major $minor"
+SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="/lib/udev/VBoxCreateUSBNode.sh --remove $major $minor"