This file is indexed.

postinst is in kbd 2.0.4-2ubuntu1.

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
#!/bin/sh

set -e

case "$1" in
    configure)
        # see #261801
        for file in dumpkeys loadkeys; do
            if [ ! -e /usr/bin/$file ]; then
                ln -s /bin/$file /usr/bin/$file
            fi
        done
        ;;
esac

# see kbd.preinst for why this is conditional.
if [ ! -e /etc/kbd/config ] && [ ! -e /etc/kbd/remap ]; then
    dpkg-maintscript-helper rm_conffile \
            /etc/kbd/config 2.0.3-2~ kbd -- "$@"
    dpkg-maintscript-helper rm_conffile \
            /etc/kbd/remap 2.0.3-2~ kbd -- "$@"
    dpkg-maintscript-helper rm_conffile \
            /etc/init.d/kbd 2.0.3-2~ kbd -- "$@"
    rmdir /etc/kbd 2>/dev/null || true
    update-rc.d -f kbd remove
fi

# Automatically added by dh_installdeb/11.1.2ubuntu1
dpkg-maintscript-helper rm_conffile /etc/init.d/console-screen.kbd.sh -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init.d/kbd -- "$@"
# End automatically added section


# vim:sw=4:sts=4:et: