Fixed modprobe install. Checks to ensure that OVS_KMODS is set

This commit is contained in:
Brian O'Connor
2013-08-05 14:00:37 -07:00
parent 1e5cdfd805
commit 7e87dbaa39
+8 -3
View File
@@ -605,9 +605,14 @@ net.ipv6.conf.lo.disable_ipv6 = 1' | sudo tee -a /etc/sysctl.conf > /dev/null
# a good idea to use a symbolic link in place of the copy below. # a good idea to use a symbolic link in place of the copy below.
function modprobe { function modprobe {
echo "Setting up modprobe for OVS kmod..." echo "Setting up modprobe for OVS kmod..."
set +o nounset
sudo cp $OVS_KMODS $DRIVERS_DIR if [ -z "$OVS_KMODS" ]; then
sudo depmod -a ${KERNEL_NAME} echo "OVS_KMODS not set. Aborting."
else
sudo cp $OVS_KMODS $DRIVERS_DIR
sudo depmod -a ${KERNEL_NAME}
fi
set -o nounset
} }
function all { function all {