]> git.proxmox.com Git - mirror_ovs.git/blame - debian/openvswitch-datapath-dkms.postinst
Set release date for 2.7.0.
[mirror_ovs.git] / debian / openvswitch-datapath-dkms.postinst
CommitLineData
49c57a8f
CS
1#!/bin/sh
2
3set -e
4
5package=openvswitch-datapath-dkms
6name=openvswitch
7
8version=`dpkg-query -W -f='${Version}' "$package" \
9 |rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"`
10
11isadded=`dkms status -m "$name" -v "$version"`
12
13if [ "x${isadded}" = "x" ] ; then
14 dkms add -m "$name" -v "$version"
15fi
16
17if [ "$1" = 'configure' ] ; then
18 dkms build -m "$name" -v "$version" && dkms install -m "$name" -v "$version" || true
19fi
20
21#DEBHELPER#