diff debian/prerm @ 420:b5aee36e8aba noffle

[svn] fixed update-inetd
author godisch
date Fri, 20 Jun 2003 07:09:18 +0100
parents e5bd838e0c27
children 09e2729b462d
line wrap: on
line diff
--- a/debian/prerm	Fri Jun 20 07:05:22 2003 +0100
+++ b/debian/prerm	Fri Jun 20 07:09:18 2003 +0100
@@ -1,9 +1,10 @@
 #!/bin/sh
-# $Id: prerm 562 2003-06-20 06:05:22Z godisch $
+# $Id: prerm 563 2003-06-20 06:09:18Z godisch $
 
 set -e
 
-if port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`"; then
+if [ "$1" = remove -o "$1" = deconfigure ] && \
+	port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`"; then
 	update-inetd --disable "$port"
 fi