mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
I tested that installing openvswitch-datapath-dkms worked OK on my own Debian machine. The bulk of this patch is taken from downstream Ubuntu DKMS support written by Chuck Short <zulcss@ubuntu.com>, version 1.2.0-1ubuntu1. I made the following changes: * Update debian/.gitignore. * Update debian/automake.mk. * Correct description in debian/control (it was a cut-and-paste from the openvswitch-datapath-source description without editing). * Fix up for --with-l26 to --with-linux and datapath/linux-2.6 to datapath/linux transitions. CC: Chuck Short <zulcss@ubuntu.com> CC: Dave Walker <DaveWalker@ubuntu.com> Acked-by: Simon Horman <horms@verge.net.au>
22 lines
450 B
Bash
22 lines
450 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
package=openvswitch-datapath-dkms
|
|
name=openvswitch
|
|
|
|
version=`dpkg-query -W -f='${Version}' "$package" \
|
|
|rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"`
|
|
|
|
isadded=`dkms status -m "$name" -v "$version"`
|
|
|
|
if [ "x${isadded}" = "x" ] ; then
|
|
dkms add -m "$name" -v "$version"
|
|
fi
|
|
|
|
if [ "$1" = 'configure' ] ; then
|
|
dkms build -m "$name" -v "$version" && dkms install -m "$name" -v "$version" || true
|
|
fi
|
|
|
|
#DEBHELPER#
|