view debian/prerm @ 354:5b6f2f3e766f noffle

[svn] updated dependencies
author godisch
date Sun, 23 Mar 2003 13:40:32 +0000
parents 56c3a43af1d5
children a23b37308063
line wrap: on
line source

#!/bin/sh
# $Id: prerm 465 2003-02-25 19:15:27Z 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 || RET=""
	port="$RET"
	[ -z "$port" -o "$port" = 119 ] && port=nntp || :
	update-inetd --disable $port
fi

db_stop
exit 0