view debian/prerm @ 413:7a0e43aea82e noffle

[svn] removed missing-debconf-dep override
author godisch
date Thu, 19 Jun 2003 23:33:20 +0100
parents b9018588cc52
children a7dbefcafc43
line wrap: on
line source

#!/bin/sh
# $Id: prerm 554 2003-06-19 22:25:30Z godisch $

set -e

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