X-Git-Url: http://git.madism.org/?p=packages%2Fxinetd.git;a=blobdiff_plain;f=debian%2Fxinetd.postrm;h=8c3640f70abddd88eac45ab0f96af301f34c4546;hp=a3bb2df69f5122bef2136c4600267bb4efb6a3a9;hb=a73ddd6fe297cf42469148a46953ad3486309a81;hpb=cad1993e2d29c5c413d4979e8ef27a767480cdb6 diff --git a/debian/xinetd.postrm b/debian/xinetd.postrm index a3bb2df..8c3640f 100644 --- a/debian/xinetd.postrm +++ b/debian/xinetd.postrm @@ -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#