~ubuntu-branches/ubuntu/natty/ipheth/natty

« back to all changes in this revision

Viewing changes to debian/ipheth-dkms.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Paul McEnery
  • Date: 2010-09-28 23:02:47 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100928230247-qjbd7tyn2vzl1uuy
Tags: 1.0-3
Add statement regarding Debian kernel version in NEWS.Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
set -e
3
 
 
4
 
NAME=ipheth
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
 
        lpia)
15
 
                ARCH="i686"
16
 
                ;;
17
 
        i386)
18
 
                ARCH="i686"
19
 
                ;;
20
 
        *)
21
 
                echo "WARNING: unsupported arch: $ARCH"
22
 
                ARCH="$ARCH"
23
 
                ;;
24
 
esac
25
 
 
26
 
case "$1" in
27
 
        configure)
28
 
                /usr/lib/dkms/common.postinst $NAME $VERSION
29
 
                exit $?
30
 
        ;;
31
 
 
32
 
        abort-upgrade|abort-remove|abort-deconfigure)
33
 
        ;;
34
 
 
35
 
        *)
36
 
                echo "postinst called with unknown argument \`$1'" >&2
37
 
                exit 1
38
 
        ;;
39
 
esac
40
 
 
41
 
#DEBHELPER#
42