vbox-modules.d

This commit is contained in:
milisbir 2018-11-24 23:39:57 +02:00
parent ef4761b2db
commit 16d105ffb4
2 changed files with 9 additions and 0 deletions

View File

@ -4,3 +4,10 @@ getent group vboxusers &> /dev/null || groupadd -f -g 108 vboxusers
# Load new udev rule for module vboxdrv
udevadm control --reload-rules
[ ! -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