#!/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" case $1 in configure) 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#