Mercurial > noffle
changeset 421:09e2729b462d noffle
[svn] fixed update-inetd
author | godisch |
---|---|
date | Fri, 20 Jun 2003 07:34:32 +0100 |
parents | b5aee36e8aba |
children | 18b3c63bf7dc |
files | debian/prerm |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/debian/prerm Fri Jun 20 07:09:18 2003 +0100 +++ b/debian/prerm Fri Jun 20 07:34:32 2003 +0100 @@ -1,11 +1,13 @@ #!/bin/sh -# $Id: prerm 563 2003-06-20 06:09:18Z godisch $ +# $Id: prerm 564 2003-06-20 06:34:32Z godisch $ set -e -if [ "$1" = remove -o "$1" = deconfigure ] && \ - port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`"; then - update-inetd --disable "$port" +if [ "$1" = remove -o "$1" = deconfigure ]; then + port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`" 2> /dev/null || true + if [ "$port" ]; then + update-inetd --disable "$port" + fi fi exit 0