kbd.postinst 736 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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

16 17 18 19 20 21 22 23 24 25 26 27
# 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

28 29 30
#DEBHELPER#

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