postrm: make sure the ssh init script even exists if something is failing v1.1.13
authorMichael Prokop <mika@grml.org>
Mon, 6 Apr 2009 09:46:10 +0000 (11:46 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 6 Apr 2009 09:46:10 +0000 (11:46 +0200)
debian/changelog
debian/postrm

index 86b1f3d..906a3c3 100644 (file)
@@ -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 <mika@grml.org>  Mon, 06 Apr 2009 11:32:27 +0200
+ -- Michael Prokop <mika@grml.org>  Mon, 06 Apr 2009 11:45:44 +0200
 
 grml-etc (1.1.12) unstable; urgency=low
 
index d7e7eb8..2d2a53e 100755 (executable)
@@ -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
      ;;