Fix typo in changelog.
[grml-etc.git] / debian / postrm
index d7e7eb8..65322a1 100755 (executable)
@@ -13,7 +13,6 @@ TO_UNDIVERT2="ssh"
 TO_UNDIVERT3="kismet.conf"
 TO_UNDIVERT4="wlan-ng.conf"
 TO_UNDIVERT5="smb.conf"
-TO_UNDIVERT6="windowlab.menurc"
 
 undivert_gen() {
     DEXT=${3:-original}
@@ -48,9 +47,13 @@ case "$1" in
         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
 
        replace_grml_with_orig_inittab
      ;;