From 7e87dbaa39b251d271d7f8fba722bf2fba8be2a4 Mon Sep 17 00:00:00 2001 From: Brian O'Connor Date: Mon, 5 Aug 2013 14:00:37 -0700 Subject: [PATCH] Fixed modprobe install. Checks to ensure that OVS_KMODS is set --- util/install.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/util/install.sh b/util/install.sh index 136c8fa..e6fdf92 100755 --- a/util/install.sh +++ b/util/install.sh @@ -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. function modprobe { echo "Setting up modprobe for OVS kmod..." - - sudo cp $OVS_KMODS $DRIVERS_DIR - sudo depmod -a ${KERNEL_NAME} + set +o nounset + if [ -z "$OVS_KMODS" ]; then + echo "OVS_KMODS not set. Aborting." + else + sudo cp $OVS_KMODS $DRIVERS_DIR + sudo depmod -a ${KERNEL_NAME} + fi + set -o nounset } function all {