#! /bin/sh # postrm script for itzks-systems-common # # see: dh_installdeb(1) # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see /usr/share/doc/packaging-manual/ set -e case "$1" in purge|remove) if ! dpkg-divert --list | grep passwd.gnu 1>/dev/null 2>/dev/null; then dpkg-divert --package itzks-systems-common --remove /usr/bin/passwd fi # interim solution for missing desktop icons for our "Webbrowser" desktop link find /usr/share/icons/hicolor -name iceweasel.png | while read icon_file; do if [ -h $icon_file ]; then rm -f $icon_file fi done if which update-icon-caches 1>/dev/null; then update-icon-caches /usr/share/icons/hicolor fi if which update-icon-caches.gtk2 1>/dev/null; then update-icon-caches.gtk2 /usr/share/icons/hicolor fi ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0