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
|
#! /bin/sh
set -e
# postinst - script to finish installation of the `console-tools' package.
# (c) 1997-2000 Yann Dirson
# (c) 1996 Dominik Kubla
CONFDIR=/etc/console-tools
test -x /usr/sbin/install-docs && install-docs -i /usr/share/doc-base/lct || true
# compress any uncompressed default kmap
if [ -r ${CONFDIR}/default.kmap ]; then
if [ -r ${CONFDIR}/default.kmap.gz ]; then
# both exist ! Keep newest one
if [ ${CONFDIR}/default.kmap -nt ${CONFDIR}/default.kmap.gz ]; then
gzip -9f ${CONFDIR}/default.kmap
else
rm -f ${CONFDIR}/default.kmap
fi
else
gzip -9 ${CONFDIR}/default.kmap
fi
fi
DONE=0
# if [ "$1" = "configure" -a -r /usr/share/debconf/confmodule ]
# then # use debconf
# . /usr/share/debconf/confmodule
# if [ -z "$RET" ] || ! db_get shared/keymap/keymap_filename
# then
# db_stop
# else
# keymap="$RET"
# /usr/sbin/install-keymap $keymap
# DONE=1
# fi
# fi
# if debconf not installed OR /usr/sbin/install-keymap is empty
if [ $DONE = 0 \
-a ! -r ${CONFDIR}/default.kmap -a ! -r ${CONFDIR}/default.kmap.gz ]
then
echo " You now use the default keyboard layout of the kernel."
echo " (unless you changed it manually)"
echo
echo " You may want it to match your actual keyboard (which is most likely"
echo " for non-american keyboards); just press RETURN to the following"
echo " prompt if you're happy with the defaults."
echo " You'll be able to change it again at any time by running"
echo " /usr/sbin/kbdconfig."
/usr/sbin/kbdconfig
fi
#DEBHELPER#
|