~ubuntu-branches/ubuntu/trusty/kubuntu-settings/trusty

« back to all changes in this revision

Viewing changes to debian/plymouth-theme-kubuntu-logo.postrm

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-10-03 14:25:19 UTC
  • Revision ID: package-import@ubuntu.com-20131003142519-gf3zsl15hroh6gyf
Tags: 1:13.10ubuntu12
* Change all maintainer scripts to not ever faile despite set -e.
  LP: #1005555, LP: #1044690
* Change all maintainer scripts to use a 4 space indent rather than tabs.
* Change all maintainer scripts to use sh -e rather than explicit set -e.
* Change all maintainer scripts to explicitly exit with 0 on end.
* Change all maintainer scripts to use single line if;then.
* Remove usage comments from all maintainer scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
 
# This script can be called in the following ways:
3
 
#
4
 
# After the package was removed:
5
 
#       <postrm> remove
6
 
#
7
 
# After the package was purged:
8
 
#       <postrm> purge
9
 
#
10
 
# After the package was upgraded:
11
 
#       <old-postrm> upgrade <new-version>
12
 
# if that fails:
13
 
#       <new-postrm> failed-upgrade <old-version>
14
 
#
15
 
#
16
 
# After all of the packages files have been replaced:
17
 
#       <postrm> disappear <overwriting-package> <version>
18
 
#
19
 
#
20
 
# If preinst fails during install:
21
 
#       <new-postrm> abort-install
22
 
#
23
 
# If preinst fails during upgrade of removed package:
24
 
#       <new-postrm> abort-install <old-version>
25
 
#
26
 
# If preinst fails during upgrade:
27
 
#       <new-postrm> abort-upgrade <old-version>
28
 
 
29
2
 
30
3
case "$1" in
31
4
    remove)
32
 
        update-alternatives \
33
 
                --remove default.plymouth /lib/plymouth/themes/kubuntu-logo/kubuntu-logo.plymouth
34
 
 
35
 
        if which update-initramfs >/dev/null 2>&1
36
 
        then
37
 
            update-initramfs -u
38
 
        fi
39
 
 
40
 
        if [ -e /boot/grub/grub.cfg ] && which update-grub2 >/dev/null 2>&1
41
 
        then
42
 
            update-grub2
43
 
        fi
44
 
        ;;
 
5
        update-alternatives \
 
6
            --remove default.plymouth \
 
7
                /lib/plymouth/themes/kubuntu-logo/kubuntu-logo.plymouth || echo "Failed to update-alternatives - BROKEN SETUP?"
 
8
 
 
9
        if which update-initramfs >/dev/null 2>&1; then
 
10
            update-initramfs -u || echo "Failed to update-initramfs - BROKEN SETUP?"
 
11
        fi
 
12
 
 
13
        if [ -e /boot/grub/grub.cfg ] && which update-grub2 >/dev/null 2>&1; then
 
14
            update-grub2 || echo "Failed to update-grub2 - BROKEN SETUP?"
 
15
        fi
 
16
        ;;
45
17
 
46
18
    purge)
47
 
        ;;
 
19
        ;;
48
20
 
49
21
    upgrade|failed-upgrade|disappear)
50
 
        ;;
 
22
        ;;
51
23
 
52
24
    abort-install|abort-upgrade)
53
 
        ;;
 
25
        ;;
54
26
 
55
27
    *)
56
 
        echo "$0 called with unknown argument \`$1'" 1>&2
57
 
        exit 1
58
 
        ;;
 
28
        echo "$0 called with unknown argument \`$1'" 1>&2
 
29
        exit 1
 
30
        ;;
59
31
esac
60
32
 
61
33
#DEBHELPER#