summaryrefslogtreecommitdiffstats
path: root/core/modules/vbox/data/addon-init
blob: afeb8c6293704e48057d2497f9d7d12a9fad6470 (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
# 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