#!/bin/sh set -e # Template for diversions ORIG_FILE="/etc/xrdp/xrdp.ini" OUR_FILE="/etc/xrdp/xrdp.ini.dgti" OUR_PACKAGE="lliurex-dgti-conf-xrdp" SCHEMA_FILE="/usr/share/glib-2.0/schemas/10_vino_dgti.gschema" SCHEMA_PATH="/usr/share/glib-2.0/schemas/" 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 "Unable to divert file ${ORIG_FILE}" fi if [ -f $SCHEMA_FILE ]; then glib-compile-schemas $SCHEMA_PATH fi ;; *) echo "Nothing to do" ;; esac # Other Stuff # dconf update #DEBHELPER#