postinst is in console-setup-mini 1.70ubuntu8.
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 | #!/bin/sh
set -e
# Source debconf library.
. /usr/share/debconf/confmodule
OLDCONFIGFILE=/etc/default/console-setup
if [ "$1" = "configure" ]; then
# For compatibility with programs that expect console-setup-mini
# to define XKB... variables in /etc/default/console-setup.
if \
[ ! -f $OLDCONFIGFILE ] \
|| ! grep '^ *[.] */etc/default/keyboard' $OLDCONFIGFILE >/dev/null
then
cat >>$OLDCONFIGFILE <<EOF
if [ -f /etc/default/keyboard ]; then
. /etc/default/keyboard
fi
EOF
fi
fi
# This works even if we are not on the console
setupcon --save-only
|