post_install() { if [ -f /etc/fonts/conf.d/00-autohint.conf ]; then rm -f /etc/fonts/conf.d/00-autohint.conf fi /sbin/ldconfig -r . echo -n "updating font cache... " /usr/bin/fc-cache -s -f echo "done." } post_upgrade() { post_install $1 } pre_remove() { post_install $1 } op=$1 shift $op $*