prepare the lets be a superserver release.
[packages/xinetd.git] / debian / xinetd.postrm
index a3bb2df..8c3640f 100644 (file)
@@ -1,31 +1,7 @@
 #!/bin/sh -e
-# xinetd postrm
 
-case "$1" in
-  remove)
-    if [ ! -f "/etc/init.d/inetd.real" ]; then
-      echo ""
-      echo "WARNING: you don't have an init script for the original"
-      echo "inetd anymore! You may need to reinstall the netkit-inetd"
-      echo "package to get it back."
-      echo ""
-    fi
-    rm -f /etc/init.d/inetd
-    dpkg-divert --package xinetd --remove --rename --divert \
-                  /etc/init.d/inetd.real /etc/init.d/inetd
-    if [ -f "/etc/init.d/inetd.real" ]; then
-        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-            invoke-rc.d inetd start
-        elif [ -x /etc/init.d/inetd ]; then
-            /etc/init.d/inetd start
-        fi
-    fi
-    ;;
-  purge)
-    rm -f /etc/xinetd.conf*
-    rm -f /etc/default/xinetd
-    rm -rf /etc/xinetd.d/
-    ;;
-esac
+if test "$1" = purge; then
+    rm -rf /etc/xinetd.d
+fi
 
 #DEBHELPER#