#!/bin/sh set -e # LliureX diversions for Firefox 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" SERVER_PROPERTIES="/usr/share/lliurex-firefox-settings/lliurex-firefox-dgti.properties" case $1 in configure) update-alternatives --install $LLIUREX_PROPERTIES lliurex-firefox $SERVER_PROPERTIES 60 if dpkg-divert --package ${OUR_PACKAGE} --add --rename --divert ${ORIG_FILE}.real ${ORIG_FILE} ; then ln -fs ${OUR_FILE} ${ORIG_FILE} else echo "Unabe to divert file ${ORIG_FILE}" fi echo "Diverting..." ;; *) echo "Nothing to do" ;; esac #DEBHELPER#