#!/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" case $1 in remove|purge|abort-install|disappear) 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#