#!/bin/sh -e
# Post-removal script for the Debian wu-ftpd package.

#DEBHELPER#

if [ -x /usr/sbin/update-inetd ]; then
    update-inetd --disable ftp
fi

if [ "$1" = "purge" ]; then
    rm -rf /var/log/wu-ftpd
    rm -rf /etc/wu-ftpd
    if [ -x /usr/sbin/update-inetd ]; then
        update-inetd --remove '^ftp\s.*/usr/sbin/wu-ftpd.*$'
    fi
fi
