#!/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 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 # Add diversion for km if dpkg-divert --package ${OUR_PACKAGE} --add --rename --divert ${KM_FILE}.real ${KM_FILE} ; then ln -fs ${OUR_KM_FILE} ${KM_FILE} else echo "Unabe to divert file ${KM_FILE}" fi ;; *) echo "Nothing to do" ;; esac # Other Stuff # #DEBHELPER#