~ubuntu-branches/ubuntu/raring/nvidia-graphics-drivers-304/raring-proposed

« back to all changes in this revision

Viewing changes to debian/nvidia-304.postrm

  • Committer: Package Import Robot
  • Author(s): Alberto Milone
  • Date: 2012-12-06 16:43:42 UTC
  • Revision ID: package-import@ubuntu.com-20121206164342-v0weyv72951pe5ft
Tags: 304.64-0ubuntu1
Initial release (LP: #1086718).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# postrm script for nvidia-304
 
3
#
 
4
# see: dh_installdeb(1)
 
5
#
 
6
# Copyright (C) 2009-2010 Canonical Ltd
 
7
# Authors: Alberto Milone
 
8
 
 
9
set -e
 
10
 
 
11
# summary of how this script can be called:
 
12
#        * <postrm> `remove'
 
13
#        * <postrm> `purge'
 
14
#        * <old-postrm> `upgrade' <new-version>
 
15
#        * <new-postrm> `failed-upgrade' <old-version>
 
16
#        * <new-postrm> `abort-install'
 
17
#        * <new-postrm> `abort-install' <old-version>
 
18
#        * <new-postrm> `abort-upgrade' <old-version>
 
19
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
 
20
# for details, see /usr/share/doc/packaging-manual/
 
21
 
 
22
case "$1" in
 
23
    remove|purge)
 
24
        # This should make sure that /usr/lib/nvidia-304 and
 
25
        # /usr/lib32/nvidia-304 are removed even if some
 
26
        # links are left. See LP: #540143
 
27
        rm -Rf /usr/lib/nvidia-304 /usr/lib32/nvidia-304
 
28
 
 
29
        # Remove the blacklist file for hybrid graphics
 
30
        rm -f /etc/modprobe.d/nvidia-304_hybrid.conf
 
31
 
 
32
        # Update initramfs, in case we were loaded into it
 
33
        /usr/sbin/update-initramfs -u
 
34
    ;;
 
35
    
 
36
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
37
 
 
38
 
 
39
    ;;
 
40
 
 
41
    *)
 
42
        echo "postrm called with unknown argument \`$1'" >&2
 
43
        exit 0
 
44
    ;;
 
45
 
 
46
esac
 
47
 
 
48
# dh_installdeb will replace this with shell code automatically
 
49
# generated by other debhelper scripts.
 
50
 
 
51
#DEBHELPER#