From 5d6fda932d48c0c3c2ff1e089563401a4924bc30 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Sat, 31 Mar 2012 21:30:16 -0700 Subject: [PATCH] Add openvswitch-datapath-dkms if no datapath installed. --- util/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/install.sh b/util/install.sh index 1393be4..b6d94ab 100755 --- a/util/install.sh +++ b/util/install.sh @@ -237,6 +237,12 @@ function ovs { # Otherwise try distribution's OVS packages if [ "$DIST" = "Ubuntu" ] && [ `echo "$RELEASE >= 11.10" | bc` = 1 ]; then + if ! dpkg --get-selections | grep openvswitch-datapath; then + # If you've already installed a datapath, assume you + # know what you're doing and don't need dkms datapath. + # Otherwise, install it. + $install openvswitch-datapath-dkms + fi if $install openvswitch-switch openvswitch-controller; then return fi