#!/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 remove|purge|abort-install|disappear) if [ -f ${ORIG_FILE}.diverted ] ; then rm -f ${ORIG_FILE} dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true fi ;; *) echo "Nothing to do" ;; esac #DEBHELPER#