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

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