#!/bin/sh set -e ORIG_FILE="/etc/firefox/syspref.js" OUR_FILE="/etc/firefox/syspref-dgti.js" OUR_PACKAGE="lliurex-dgti-conf-firefox-common-settings" LLIUREX_PROPERTIES="/usr/share/lliurex-firefox-settings/lliurex-firefox.properties" DGTI_PROPERTIES="/usr/share/lliurex-firefox-settings/lliurex-firefox-dgti.properties" case $1 in remove|purge|abort-install|disappear) update-alternatives --remove lliurex-firefox $DGTI_PROPERTIES if [ -f ${ORIG_FILE}.real ] ; then dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true fi echo "Desdiverting...." ;; *) echo "Nothing to do" ;; esac #DEBHELPER#