#!/bin/sh set -e # Template for diversions ORIG_FILE="/etc/ssh/sshd_config" OUR_FILE="/etc/ssh/sshd_config.dgti" OUR_PACKAGE="lliurex-dgti-conf-sshd" 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 ;; *) echo "Nothing to do" ;; esac # Other Stuff # #DEBHELPER#