summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox-bin/files/10-virtualbox.rules
blob: 014c164a37f51051f1835482f340e19c11a25f67 (plain)
1
2
3
4
5
6
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"