ofproto-dpif: Factor out VLAN splinter flow adjustment into new function.
[openvswitch] / debian / openvswitch-datapath-dkms.postinst
1 #!/bin/sh
2
3 set -e
4
5 package=openvswitch-datapath-dkms
6 name=openvswitch
7
8 version=`dpkg-query -W -f='${Version}' "$package" \
9         |rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"`
10
11 isadded=`dkms status -m "$name" -v "$version"`
12
13 if [ "x${isadded}" = "x" ] ; then
14         dkms add -m "$name" -v "$version"
15 fi
16
17 if [ "$1" = 'configure' ] ; then
18         dkms build -m "$name" -v "$version" && dkms install -m "$name" -v "$version" || true
19 fi
20
21 #DEBHELPER#