#!/bin/sh set -e # Template for diversions ORIG_FILE="/etc/xrdp/xrdp.ini" OUR_FILE="/usr/share/lliurex-dgti-conf-xrdp/xrdp.ini" OUR_PACKAGE="lliurex-dgti-conf-xrdp" OUR_XSESSION="/usr/share/lliurex-dgti-conf-xrdp/startwm-dgti.sh" ORIG_XSESSION="/etc/xrdp/startwm.sh" case $1 in remove|purge|abort-install|disappear) if [ -f ${ORIG_FILE}.real ] ; then echo "* Removing diversion : ${ORIG_FILE} " rm -f ${ORIG_FILE} dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true fi if [ -f ${ORIG_XSESSION}.real ] ; then echo "* Removing diversion : ${ORIG_XSESSION} " rm -f ${ORIG_XSESSION} dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_XSESSION}|| true fi ;; *) echo "* Nothing to do" ;; esac # Other Stuff # #DEBHELPER#