X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpostrm;fp=debian%2Fpostrm;h=0000000000000000000000000000000000000000;hb=371db27aa92277132f9e8ea374fe45f1ea9cd4f3;hp=bdf6a0ac577b14809670fd10125b9eefd8e3599d;hpb=5b9a5ccb7da30c8c53fe55e1a5134529165c7ceb;p=grml-etc.git diff --git a/debian/postrm b/debian/postrm deleted file mode 100755 index bdf6a0a..0000000 --- a/debian/postrm +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# Filename: postrm -# Purpose: postrm script for package grml-etc -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -set -e - -TO_UNDIVERT1="ssh" - -undivert_gen() { - DEXT=${3:-original} - dpkg-divert --remove --rename --package grml-etc \ - --divert $2/$1.$DEXT $2/$1 #> /dev/null -} - -case "$1" in - purge) - for cmd in $TO_UNDIVERT1; do - undivert_gen $cmd /etc/init.d - done - - # make sure the ssh init script even exists if something is failing... - if ls /etc/init.d/ssh* 1>/dev/null 2>&1 ; then - if [ ! -f /etc/init.d/ssh -a /etc/init.d/ssh.original.dpkg-new ] ; then - mv /etc/init.d/ssh.original.dpkg-new /etc/init.d/ssh - fi - fi - - ;; - - remove|abort-install|disappear) - ;; - - upgrade|failed-upgrade|abort-install|abort-upgrade) - ;; - - *) - echo "postrm called with unknown argument $1" >&2 - exit 1 -esac - -#DEBHELPER# - -exit 0 - -## END OF FILE #################################################################