#!/bin/sh set -e # Template for diversions ORIG_FILE="/etc/xrdp/startwm.sh" OUR_FILE="/etc/xrdp/startwm.lliurex.sh" KM_FILE="/etc/xrdp/km-0409.ini" OUR_KM_FILE="/usr/share/lliurex-enable-xrdp/km-0409.ini" OUR_PACKAGE="lliurex-enable-xrdp" case $1 in remove|purge|abort-install|disappear) if [ -f ${ORIG_FILE}.real ] ; then dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true fi # Remove also the km file if [ -f ${KM_FILE}.real ] ; then dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${KM_FILE}|| true fi ;; *) echo "Nothing to do" ;; esac # Other Stuff # #DEBHELPER#