summaryrefslogtreecommitdiffstats
path: root/remote/modules/vbox
diff options
context:
space:
mode:
authorChristian Rößler2013-08-30 16:40:53 +0200
committerChristian Rößler2013-08-30 16:40:53 +0200
commitfba14fed44024a17106a6e1ad8d15a08478651a9 (patch)
tree2b0aff6e7f9d791c62949e2dddae73520895e343 /remote/modules/vbox
parent[vbox] addons-init Indent. (diff)
downloadtm-scripts-fba14fed44024a17106a6e1ad8d15a08478651a9.tar.gz
tm-scripts-fba14fed44024a17106a6e1ad8d15a08478651a9.tar.xz
tm-scripts-fba14fed44024a17106a6e1ad8d15a08478651a9.zip
[vbox] udev rule
Diffstat (limited to 'remote/modules/vbox')
-rw-r--r--remote/modules/vbox/data/etc/udev/rules.d/10-vboxdrv.rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/remote/modules/vbox/data/etc/udev/rules.d/10-vboxdrv.rules b/remote/modules/vbox/data/etc/udev/rules.d/10-vboxdrv.rules
new file mode 100644
index 00000000..2b82a0fc
--- /dev/null
+++ b/remote/modules/vbox/data/etc/udev/rules.d/10-vboxdrv.rules
@@ -0,0 +1,6 @@
+KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
+KERNEL=="vboxnetctl", NAME="vboxnetctl", OWNER="root", GROUP="root", MODE="0600"
+SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
+SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
+SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
+SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"