From: Michael Prokop Date: Mon, 6 Apr 2009 09:46:10 +0000 (+0200) Subject: postrm: make sure the ssh init script even exists if something is failing X-Git-Tag: v1.1.13^0 X-Git-Url: http://git.grml.org/?p=grml-etc.git;a=commitdiff_plain;h=7bb0abfb2eb1b87e926b79147a9bdfec95ab411d postrm: make sure the ssh init script even exists if something is failing --- diff --git a/debian/changelog b/debian/changelog index 86b1f3d..906a3c3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,11 +9,13 @@ grml-etc (1.1.13) unstable; urgency=low Thorsten Glaser for help. [Closes: issue468] Additionally add configuration for urxvt. * /etc/skel/.Xmodmap: Use 'EuroSign' instead of 'currency'. - * Debian postrm: when removing the package use /etc/init.d/rc instead - of /etc/init.d/grml-[reboot|halt]. + * Debian postrm: + - when removing the package use /etc/init.d/rc instead + of /etc/init.d/grml-[reboot|halt]. + - make sure the ssh init script even exists if something is failing * Slightly improve message for removing media from tray on reboot/halt. - -- Michael Prokop Mon, 06 Apr 2009 11:32:27 +0200 + -- Michael Prokop Mon, 06 Apr 2009 11:45:44 +0200 grml-etc (1.1.12) unstable; urgency=low diff --git a/debian/postrm b/debian/postrm index d7e7eb8..2d2a53e 100755 --- a/debian/postrm +++ b/debian/postrm @@ -52,6 +52,13 @@ case "$1" in 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 + replace_grml_with_orig_inittab ;;