Remove code to unmangle inittab from postrm
[grml-etc.git] / debian / postrm
index 0527959..bdf6a0a 100755 (executable)
@@ -9,9 +9,6 @@
 set -e
 
 TO_UNDIVERT1="ssh"
-TO_UNDIVERT2="kismet.conf"
-TO_UNDIVERT3="wlan-ng.conf"
-TO_UNDIVERT4="smb.conf"
 
 undivert_gen() {
     DEXT=${3:-original}
@@ -19,30 +16,11 @@ undivert_gen() {
         --divert $2/$1.$DEXT $2/$1 #> /dev/null
 }
 
-replace_grml_with_orig_inittab() {
-  if grep -q '^l0:0:wait:/etc/init.d/grml-halt$' /etc/inittab ; then
-     sed -i 's|^l0:0:wait:/etc/init.d/grml-halt|l0:0:wait:/etc/init.d/rc 0|' /etc/inittab
-  fi
-
-  if grep -q '^l6:6:wait:/etc/init.d/grml-reboot$' /etc/inittab ; then
-     sed -i 's|^l6:6:wait:/etc/init.d/grml-reboot|l6:6:wait:/etc/init.d/rc 6|' /etc/inittab
-  fi
-}
-
 case "$1" in
     purge)
         for cmd in $TO_UNDIVERT1; do
                 undivert_gen $cmd /etc/init.d
         done
-        for cmd in $TO_UNDIVERT2; do
-                undivert_gen $cmd /etc/kismet
-        done
-        for cmd in $TO_UNDIVERT3; do
-                undivert_gen $cmd /etc/pcmcia
-        done
-        for cmd in $TO_UNDIVERT4; do
-                undivert_gen $cmd /etc/samba
-        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
@@ -51,11 +29,9 @@ case "$1" in
          fi
        fi
 
-       replace_grml_with_orig_inittab
      ;;
 
    remove|abort-install|disappear)
-        replace_grml_with_orig_inittab
      ;;
 
    upgrade|failed-upgrade|abort-install|abort-upgrade)