2
# postrm script for nvidia-304
4
# see: dh_installdeb(1)
6
# Copyright (C) 2009-2010 Canonical Ltd
7
# Authors: Alberto Milone
11
# summary of how this script can be called:
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/
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
29
# Remove the blacklist file for hybrid graphics
30
rm -f /etc/modprobe.d/nvidia-304_hybrid.conf
32
# Update initramfs, in case we were loaded into it
33
/usr/sbin/update-initramfs -u
36
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
42
echo "postrm called with unknown argument \`$1'" >&2
48
# dh_installdeb will replace this with shell code automatically
49
# generated by other debhelper scripts.