1
0
forked from mir/linux-vm-tools

use seperate files rather than using the old global file(s)

..for handling modules
This commit is contained in:
Björn Bidar 2018-03-19 12:18:46 +01:00
parent a04a8a9523
commit efe1759a1d

View File

@ -56,17 +56,16 @@ rmmod vsock
modprobe hv_sock
# Blacklist the vmw module
if grep vmw_vsock_vmci_transport /etc/modprobe.d/blacklist.conf --quiet ; then
cat >> /etc/modprobe.d/blacklist.conf <<EOF
if [ ! -e /etc/modprobe.d/blacklist_vmw_vsock_vmci_transport.conf ] ; then
cat >> /etc/modprobe.d/blacklist_vmw_vsock_vmci_transport.conf <<EOF
blacklist vmw_vsock_vmci_transport"
EOF
fi
#Ensure hv_sock gets loaded
if ! grep hv_sock /etc/modules --quiet ; then
echo "hv_sock" >> /etc/modules
if [ ! -e /etc/modules-load.d/hv_sock.conf ] ; then
echo "hv_sock" > /etc/modules-load.d/hv_sock.conf
fi
# Configure the policy xrdp session