summaryrefslogtreecommitdiffstats
path: root/core/modules/vbox/data/addon-init
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/vbox/data/addon-init')
-rwxr-xr-xcore/modules/vbox/data/addon-init17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/modules/vbox/data/addon-init b/core/modules/vbox/data/addon-init
new file mode 100755
index 00000000..afeb8c62
--- /dev/null
+++ b/core/modules/vbox/data/addon-init
@@ -0,0 +1,17 @@
+#!/bin/ash
+
+addgroup vboxusers
+nscd -i group
+# Will be done by PAM now: addgroup demo vboxusers
+
+if grep -q usb_device /proc/devices; then
+ mkdir -p -m 0750 /dev/vboxusb 2>/dev/null
+ chown root:vboxusers /dev/vboxusb 2>/dev/null
+fi
+
+systemctl daemon-reload
+systemctl start vbox.service
+
+# this seems to be necessary due to the misbehaviour of udevd
+# in view of the undetected ENV dev_type
+systemctl restart systemd-udevd