#!/bin/sh # This script can be called in the following ways: # # After the package was removed: # remove # # After the package was purged: # purge # # After the package was upgraded: # upgrade # if that fails: # failed-upgrade # # # After all of the packages files have been replaced: # disappear # # # If preinst fails during install: # abort-install # # If preinst fails during upgrade of removed package: # abort-install # # If preinst fails during upgrade: # abort-upgrade set -e case "$1" in remove) if update-alternatives --query newt-palette | grep -qs "Value: /etc/newt/palette.original"; then update-alternatives --auto newt-palette fi ;; esac #DEBHELPER# exit 0