Add openvswitch-datapath-dkms if no datapath installed.
This commit is contained in:
@@ -237,6 +237,12 @@ function ovs {
|
|||||||
|
|
||||||
# Otherwise try distribution's OVS packages
|
# Otherwise try distribution's OVS packages
|
||||||
if [ "$DIST" = "Ubuntu" ] && [ `echo "$RELEASE >= 11.10" | bc` = 1 ]; then
|
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
|
if $install openvswitch-switch openvswitch-controller; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user