view debian/prerm @ 395:056d5fcb7f4b noffle

[svn] updated deb'configuration
author godisch
date Thu, 29 May 2003 15:44:56 +0100 (2003-05-29)
parents a23b37308063
children 6b4d9c2087f0
line wrap: on
line source
#!/bin/sh
# $Id: prerm 499 2003-03-29 06:57:20Z godisch $

set -e
. /usr/share/debconf/confmodule
db_version 2.0

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

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

db_stop
exit 0