~droetker/ubuntu/saucy/bumblebee/fix-for-1250745

« back to all changes in this revision

Viewing changes to debian/bumblebee.postrm

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2013-05-03 03:04:38 UTC
  • Revision ID: package-import@ubuntu.com-20130503030438-uvmvja55iicztpxf
Tags: upstream-3.2.1
ImportĀ upstreamĀ versionĀ 3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# postrm script for bumblebee
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
 
 
9
case "$1" in
 
10
  purge)
 
11
    groupdel bumblebee || true
 
12
    # keep this as old versions did not mark these files as conffiles
 
13
    for file in bumblebee.conf xorg.conf.nvidia xorg.conf.nouveau; do
 
14
        rm -f /etc/bumblebee/$file
 
15
    done
 
16
    ;;
 
17
  remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
18
    ;;
 
19
 
 
20
  *)
 
21
    echo "postrm called with unknown argument \`$1'" >&2
 
22
    exit 1
 
23
    ;;
 
24
esac
 
25
 
 
26
case "$1" in
 
27
  purge|remove|abort-install)
 
28
    # update initial ramdisk to skip blacklist
 
29
    update-initramfs -u
 
30
    ;;
 
31
esac
 
32
 
 
33
#DEBHELPER#
 
34
 
 
35
exit 0