15 lines
380 B
Bash
15 lines
380 B
Bash
#!/bin/sh
|
|
# Add vboxusers group, GID 108 is reserved
|
|
getent group vboxusers &> /dev/null || groupadd -f -g 108 vboxusers
|
|
|
|
# Load new udev rule for module vboxdrv
|
|
udevadm control --reload-rules
|
|
|
|
mkdir -p /etc/sysconfig/modules.d
|
|
[ ! -f /etc/sysconfig/modules.d/virtualbox.conf ] && cat >> /etc/sysconfig/modules.d/virtualbox.conf << "EOF"
|
|
vboxdrv
|
|
vboxnetadp
|
|
vboxnetflt
|
|
vboxpci
|
|
EOF
|