#!/bin/sh
# $Id: prerm 564 2003-06-20 06:34:32Z godisch $

set -e

if [ "$1" = remove -o "$1" = deconfigure ]; then
	port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`" 2> /dev/null || true
	if [ "$port" ]; then
		update-inetd --disable "$port"
	fi
fi

exit 0
