]> git.proxmox.com Git - mirror_spl-debian.git/blame - debian/spl-dkms.prerm
Merge branch 'upstream'
[mirror_spl-debian.git] / debian / spl-dkms.prerm
CommitLineData
0fbe1fc0
DH
1#!/bin/sh
2set -e
3
4NAME=spl
5PACKAGE_NAME=$NAME-dkms
6DEBVERS=$(dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F- '{print $1}')
7VERSION=$(echo $DEBVERS |sed -e 's/[+-].*//' -e 's/~//g')
8
9case "$1" in
10 remove|upgrade)
11 echo "Removing all DKMS Modules"
12 dkms remove -m $NAME -v $VERSION --all > /dev/null || echo "Ignoring error"
13 echo "Done."
14 ;;
15esac
16
17#DEBHELPER#
18