Mercurial > noffle
comparison debian/prerm @ 421:09e2729b462d noffle
[svn] fixed update-inetd
author | godisch |
---|---|
date | Fri, 20 Jun 2003 07:34:32 +0100 |
parents | b5aee36e8aba |
children | 18b3c63bf7dc |
comparison
equal
deleted
inserted
replaced
420:b5aee36e8aba | 421:09e2729b462d |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: prerm 563 2003-06-20 06:09:18Z godisch $ | 2 # $Id: prerm 564 2003-06-20 06:34:32Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 | 5 |
6 if [ "$1" = remove -o "$1" = deconfigure ] && \ | 6 if [ "$1" = remove -o "$1" = deconfigure ]; then |
7 port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`"; then | 7 port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`" 2> /dev/null || true |
8 update-inetd --disable "$port" | 8 if [ "$port" ]; then |
9 update-inetd --disable "$port" | |
10 fi | |
9 fi | 11 fi |
10 | 12 |
11 exit 0 | 13 exit 0 |