#!/bin/sh set -e # Template for diversions ORIG_FILE="/etc/acpi/powerbtn.sh" OUR_FILE="/etc/acpi/powerbtn.sh.lliurex" OUR_PACKAGE="lliurex-acpi" case $1 in configure) if dpkg-divert --package ${OUR_PACKAGE} --add --rename --divert ${ORIG_FILE}.diverted ${ORIG_FILE} ; then ln -fs ${OUR_FILE} ${ORIG_FILE} else echo "Unabe to divert file ${ORIG_FILE}" fi ;; *) echo "Nothing to do" ;; esac dconf update service acpid restart #DEBHELPER# exit 0