#!/bin/sh set -e # LliureX diversions for Thunderbird Dgti ORIG_FILE="/usr/lib/thunderbird/defaults/pref/channel-prefs.js" OUR_FILE="/usr/lib/thunderbird/defaults/pref/channel-prefs-dgti.js" OUR_PACKAGE="lliurex-dgti-conf-thunderbird-extensions-lock" 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 "Nothing to do" ;; esac #DEBHELPER#