]> git.proxmox.com Git - mirror_spl-debian.git/blob - debian/spl-dkms.postinst
Merge branch 'upstream'
[mirror_spl-debian.git] / debian / spl-dkms.postinst
1 #!/bin/sh
2 set -e
3
4 NAME=spl
5 PACKAGE_NAME=$NAME-dkms
6 DEBVERS=$(dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F- '{print $1}')
7 VERSION=$(echo $DEBVERS |sed -e 's/[+-].*//' -e 's/~//g')
8
9 ARCH=$(dpkg --print-architecture)
10 case $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 ;;
21 esac
22
23 case "$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 ;;
36 esac
37
38 #DEBHELPER#
39