#!/bin/bash set -e SYSTEM_CONFIG_SCRIPT=/usr/bin/update-manager SYSTEM_AUTOSTART_SCRIPT="/usr/bin/update-notifier" OUR_AUTOSTART_BINARY="/bin/true" OUR_BINARY=/usr/sbin/lliurex-up # Template for diversions ORIG_FILE="/etc/vim/vimrc" OUR_FILE="/etc/vim/vimrc.lliurex" OUR_PACKAGE="lliurex-up" case $1 in remove|purge|abort-install|disappear) if [ -f "${SYSTEM_CONFIG_SCRIPT}.real" ] ; then rm -f "${SYSTEM_CONFIG_SCRIPT}" dpkg-divert --package lliurex-up --rename --quiet --remove "${SYSTEM_CONFIG_SCRIPT}" || true fi if [ -f "${SYSTEM_AUTOSTART_SCRIPT}.real" ] ; then rm -f "${SYSTEM_AUTOSTART_SCRIPT}" dpkg-divert --package lliurex-up --rename --quiet --remove "${SYSTEM_AUTOSTART_SCRIPT}" || true fi if [ -f ${ORIG_FILE}.real ] ; then rm -f ${ORIG_FILE} dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true fi ;; esac #DEBHELPER# exit 0