summaryrefslogtreecommitdiffstats
path: root/remote/modules/vbox/data/addon-init
blob: d3c3fa47fd2495e888ffde8b6bb64a448b2e53c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

addgroup vboxusers
nscd -i group
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