vbox-modules.d

This commit is contained in:
milisbir 2018-11-24 23:55:55 +02:00
parent 9ac9b2a52a
commit 601d865240
2 changed files with 10 additions and 0 deletions

View File

@ -4,3 +4,11 @@ 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

View File

@ -0,0 +1,2 @@
#!/bin/sh
[ -f /etc/sysconfig/modules.d/virtualbox.conf ] && rm /etc/sysconfig/modules.d/virtualbox.conf