diff debian/prerm @ 419:e5bd838e0c27 noffle

[svn] fixed update-inetd
author godisch
date Fri, 20 Jun 2003 07:05:22 +0100
parents a7dbefcafc43
children b5aee36e8aba
line wrap: on
line diff
--- a/debian/prerm	Fri Jun 20 06:59:52 2003 +0100
+++ b/debian/prerm	Fri Jun 20 07:05:22 2003 +0100
@@ -1,20 +1,10 @@
 #!/bin/sh
-# $Id: prerm 558 2003-06-20 05:46:35Z godisch $
+# $Id: prerm 562 2003-06-20 06:05:22Z 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
+if port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`"; then
+	update-inetd --disable "$port"
 fi
 
 exit 0