#!/bin/sh set -e case "$1" in remove) PACKAGE_NAME="lliurex-extra-configs" # GIMP DEFAULT_GIMP_CONF="/etc/gimp/2.0/gimprc" LLIUREX_GIMP_CONF="/etc/gimp/2.0/gimprc.lliurex" DIVERTED_GIMP_CONF="/etc/gimp/2.0/gimprc.diverted" if [ -f ${DIVERTED_GIMP_CONF} ] ; then rm -f ${DEFAULT_GIMP_CONF} dpkg-divert --package ${PACKAGE_NAME} --rename --quiet --remove ${DEFAULT_GIMP_CONF}|| true fi ;; failed-upgrade) ;; upgrade|deconfigure) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0