This file is indexed.

postinst 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
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh -e

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


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

case "$1" in
    configure)
        # Kubuntu prefers legacy newt colors over Aubergine by default
        if update-alternatives --query newt-palette | grep -qs "Status: auto"; then
            update-alternatives --set newt-palette /etc/newt/palette.original || warn "Failed to update newt alternatives"
        fi

        # Clean the print driver database.
        if [ -x /usr/sbin/foomatic-cleanupdrivers ]; then
            foomatic-cleanupdrivers || warn "Failed to foomatic-cleanupdrivers"
        fi

        # Update grub to apply 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

        # Create links for .hidden files, don't bail out if s.th. goes wrong.
        if [ -d /media ]; then
            if [ ! -e /media/.hidden ]; then
                ln -s /etc/kubuntu-default-settings/hidden-media /media/.hidden || warn "Could not create symlink /media/.hidden, skipping."
            fi
            if [ ! -e /media/.directory ]; then
                ln -s /etc/kubuntu-default-settings/directory-media /media/.directory || warn "Could not create symlink /media/.directory, skipping."
            fi
        fi

        if [ -d /home ]; then
            if [ ! -e /home/.directory ]; then
                ln -s /etc/kubuntu-default-settings/directory-home /home/.directory || warn "Could not create symlink /home/.directory, skipping."
            fi
        fi

        # Remove symlink created by k-d-s <= 1:11.04ubuntu2
        if [ -h /usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi ]; then
            rm /usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi || warn "Could not remove symlink /usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi, skipping."
        fi
        ;;

    abort-upgrade|abort-deconfigure|abort-remove)
        ;;

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

exit 0