~ubuntu-branches/ubuntu/utopic/open-vm-tools/utopic

« back to all changes in this revision

Viewing changes to debian/open-vm-tools-dkms.postinst

  • Committer: Package Import Robot
  • Author(s): Bernd Zeimetz, 31c30832
  • Date: 2014-01-08 20:28:33 UTC
  • mfrom: (1.4.14) (2.4.42 sid)
  • Revision ID: package-import@ubuntu.com-20140108202833-l0ycdpzq5ayadedn
Tags: 2:9.4.0-1280544-5
[31c30832] Revert "Enable building of vmci again."
This reverts commit 0d55577cd3c262dbbc2bf79593d6f500f84c4170.
Too fast upload, sorry. vmhgfs is indeed (still) broken with
vmci.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
NAME="open-vm-tools"
6
 
PACKAGE_NAME="open-vm-tools-dkms"
7
 
CVERSION="$(dpkg-query -W -f='${Version}' ${PACKAGE_NAME} | awk -F "-" '{ print $1 }' | cut -d\: -f2)"
8
 
ARCH=$(dpkg --print-architecture)
9
 
 
10
 
case "${1}" in
11
 
        configure)
12
 
                for POSTINST in /usr/lib/dkms/common.postinst /usr/share/${PACKAGE_NAME}/postinst
13
 
                do
14
 
                        if [ -f ${POSTINST} ]
15
 
                        then
16
 
                                ${POSTINST} ${NAME} ${CVERSION} /usr/share/${PACKAGE_NAME} ${ARCH} ${2}
17
 
                                exit ${?}
18
 
                        fi
19
 
 
20
 
                        echo "WARNING: ${POSTINST} does not exist."
21
 
                done
22
 
 
23
 
                echo "ERROR: DKMS version is too old and ${PACKAGE_NAME} was not"
24
 
                echo "built with legacy DKMS support."
25
 
                echo "You must either rebuild ${PACKAGE_NAME} with legacy postinst"
26
 
                echo "support or upgrade DKMS to a more current version."
27
 
                exit 1
28
 
                ;;
29
 
 
30
 
        abort-upgrade|abort-remove|abort-deconfigure)
31
 
 
32
 
                ;;
33
 
 
34
 
        *)
35
 
                echo "postinst called with unknown argument \`${1}'" >&2
36
 
                exit 1
37
 
        ;;
38
 
esac
39
 
 
40
 
#DEBHELPER#
41
 
 
42
 
exit 0