source: lliurex-dgti-conf-firefox/trunk/fuentes/debian/lliurex-dgti-conf-firefox-common-settings.prerm @ 1000

Last change on this file since 1000 was 1000, checked in by mabarracus, 5 years ago

Copy trusty code

File size: 648 bytes
Line 
1#!/bin/sh
2set -e
3
4ORIG_FILE="/etc/firefox/syspref.js"
5OUR_FILE="/etc/firefox/syspref-dgti.js"
6OUR_PACKAGE="lliurex-dgti-conf-firefox-common-settings"
7LLIUREX_PROPERTIES="/usr/share/lliurex-firefox-settings/lliurex-firefox.properties"
8DGTI_PROPERTIES="/usr/share/lliurex-firefox-settings/lliurex-firefox-dgti.properties"
9
10case $1 in
11        remove|purge|abort-install|disappear)
12                update-alternatives --remove lliurex-firefox $DGTI_PROPERTIES
13                if [ -f ${ORIG_FILE}.real ] ; then
14                        dpkg-divert --package  ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true
15                fi
16                echo "Desdiverting...."
17                ;;
18        *)
19                echo "Nothing to do"
20                ;; 
21esac
22
23#DEBHELPER#
24
Note: See TracBrowser for help on using the repository browser.