]> git.proxmox.com Git - mirror_spl-debian.git/blame - debian/spl-dkms.postinst
Merge branch 'upstream'
[mirror_spl-debian.git] / debian / spl-dkms.postinst
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
9ARCH=$(dpkg --print-architecture)
10case $ARCH in
11 amd64)
12 ARCH="x86_64"
13 ;;
14 i386)
15 ARCH="i686"
16 ;;
17 *)
18 echo "WARNING: unsupported arch: $ARCH"
19 ARCH="$ARCH"
20 ;;
21esac
22
23case "$1" in
24 configure)
25 /usr/lib/dkms/common.postinst $NAME $VERSION
26 exit $?
27 ;;
28
29 abort-upgrade|abort-remove|abort-deconfigure)
30 ;;
31
32 *)
33 echo "postinst called with unknown argument \`$1'" >&2
34 exit 1
35 ;;
36esac
37
38#DEBHELPER#
39