X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpostrm;h=bdf6a0ac577b14809670fd10125b9eefd8e3599d;hb=b89dc288131abedcb0b86bbbcdab0e67d1c0450e;hp=589d0b3d12f190d46ab8c0da5cdff08970d5a51f;hpb=619e0de06b76617ae33acdeafc455210dc58d729;p=grml-etc.git diff --git a/debian/postrm b/debian/postrm index 589d0b3..bdf6a0a 100755 --- a/debian/postrm +++ b/debian/postrm @@ -4,17 +4,11 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fre Sep 15 15:39:48 CEST 2006 [mika] ################################################################################ set -e -TO_UNDIVERT1="login.config mgetty.config" -TO_UNDIVERT2="ssh" -TO_UNDIVERT3="kismet.conf" -TO_UNDIVERT4="wlan-ng.conf" -TO_UNDIVERT5="smb.conf" -TO_UNDIVERT6="windowlab.menurc" +TO_UNDIVERT1="ssh" undivert_gen() { DEXT=${3:-original} @@ -25,31 +19,31 @@ undivert_gen() { case "$1" in purge) for cmd in $TO_UNDIVERT1; do - undivert_gen $cmd /etc/mgetty - done - for cmd in $TO_UNDIVERT2; do undivert_gen $cmd /etc/init.d done - for cmd in $TO_UNDIVERT3; do - undivert_gen $cmd /etc/kismet - done - for cmd in $TO_UNDIVERT4; do - undivert_gen $cmd /etc/pcmcia - done - for cmd in $TO_UNDIVERT5; do - undivert_gen $cmd /etc/samba - done - for cmd in $TO_UNDIVERT6; do - undivert_gen $cmd /etc/X11/windowlab - 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) ;; - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|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 #################################################################