linuxOS_AP05/debian/base-linaro/binary/var/lib/dpkg/info/kbd.postinst
2025-09-26 09:40:02 +08:00

31 lines
725 B
Bash
Executable File

#!/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
# vim:sw=4:sts=4:et: