This file is indexed.

postrm is in kubuntu-settings-desktop 1:14.04ubuntu15.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh -e

# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/X11/Xsession.d/80qtgraphicssystem 1:12.04ubuntu2 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/default/grub.d/50_kubuntu.cfg 1:14.04ubuntu15~ -- "$@"
# End automatically added section


warn()
{
    echo "W: $1"
}

case "$1" in
    purge)
        # remove symbolic links on purge again (careful, only if these *are* symlinks, 
        # also don't bail out if s.th. goes wrong (e.g. /media mounted r.o.)
        if [ -h /.hidden ]; then
            rm /.hidden || warn "Could not remove symlink /.hidden, skipping."
        fi
        if [ -h /media/.hidden ]; then
            rm /media/.hidden || warn "Could not remove symlink /media/.hidden, skipping."
        fi

        # Update grub to drop possible name override
        if [ -e /boot/grub/grub.cfg ] && which update-grub2 >/dev/null 2>&1; then
            update-grub2 || warn "Failed to update-grub2"
        fi
        ;;

    remove)
        if update-alternatives --query newt-palette | grep -qs "Value: /etc/newt/palette.original"; then
            update-alternatives --auto newt-palette || warn "Failed to update newt alternatives"
        fi
        ;;

    upgrade|failed-upgrade|disappear)
        ;;

    abort-install|abort-upgrade)
        ;;

    *)
        echo "$0 called with unknown argument \`$1'" 1>&2
        exit 1
        ;;
esac

exit 0