view debian/prerm @ 404:775af896124a noffle

[svn] fixed debconf problem
author godisch
date Thu, 05 Jun 2003 18:27:28 +0100
parents 6b4d9c2087f0
children b9018588cc52
line wrap: on
line source

#!/bin/sh
# $Id: prerm 546 2003-06-05 17:27:28Z godisch $

set -e

if [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_get noffle/port
	port="$RET"
	if [ -z "$port" -o "$port" = 119 ]; then
		port=nntp
	fi
	update-inetd --disable $port
	db_stop
fi

if [ -x /usr/sbin/invoke-rc.d ]; then
	invoke-rc.d noffle stop
elif [ -x /etc/init.d/noffle ]; then
	/etc/init.d/noffle stop
fi

exit 0