Fixed modprobe install. Checks to ensure that OVS_KMODS is set
This commit is contained in:
+8
-3
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user