view debian/prerm @ 403:19a27707200f noffle

[svn] update
author godisch
date Thu, 05 Jun 2003 14:39:56 +0100
parents 6b4d9c2087f0
children 775af896124a
line wrap: on
line source

#!/bin/sh
# $Id: prerm 544 2003-06-03 21:31:11Z godisch $

set -e

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
	. /usr/share/debconf/confmodule
	db_version 2.0
	db_get noffle/port
	port="$RET"
	if [ -z "$port" -o "$port" = 119 ]; then
		port=nntp
	fi
	update-inetd --disable $port
	db_stop
fi

exit 0