Add openvswitch-datapath-dkms if no datapath installed.

This commit is contained in:
Bob Lantz
2012-03-31 21:30:16 -07:00
parent c1a6ae2b48
commit 5d6fda932d
+6
View File
@@ -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