debian: Do not run "make" if "configure" fails during DKMS build.
[sliver-openvswitch.git] / debian / openvswitch-datapath-dkms.prerm
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 dkms remove -m "$name" -v "$version" --all || true
12
13 #DEBHELPER#
14
15 exit 0