#!/bin/sh set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install|upgrade) # this is replaced to be a real file an not a symlink in version # 0.99.2, dpkg will not remove the symlink and put the new # file as .dpkg-new (can be removed post-lucid) for file in 20-cpu-checker 90-updates-available 98-reboot-required; do if [ -L /etc/update-motd.d/$file ]; then rm -f /etc/update-motd.d/$file fi done ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac