Mercurial > noffle
comparison debian/prerm @ 419:e5bd838e0c27 noffle
[svn] fixed update-inetd
| author | godisch |
|---|---|
| date | Fri, 20 Jun 2003 07:05:22 +0100 |
| parents | a7dbefcafc43 |
| children | b5aee36e8aba |
comparison
equal
deleted
inserted
replaced
| 418:cb18c7d41cc5 | 419:e5bd838e0c27 |
|---|---|
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # $Id: prerm 558 2003-06-20 05:46:35Z godisch $ | 2 # $Id: prerm 562 2003-06-20 06:05:22Z godisch $ |
| 3 | 3 |
| 4 set -e | 4 set -e |
| 5 | 5 |
| 6 if [ -e /usr/share/debconf/confmodule ]; then | 6 if port="`grep "/usr/bin/noffle -r" /etc/inetd.conf | sed 's/[[:space:]].*$//'`"; then |
| 7 . /usr/share/debconf/confmodule | 7 update-inetd --disable "$port" |
| 8 db_get noffle/debconf | |
| 9 if [ "$RET" = true ]; then | |
| 10 db_get noffle/port | |
| 11 port="$RET" | |
| 12 if [ -z "$port" -o "$port" = 119 ]; then | |
| 13 port=nntp | |
| 14 fi | |
| 15 update-inetd --disable "$port" | |
| 16 fi | |
| 17 db_stop | |
| 18 fi | 8 fi |
| 19 | 9 |
| 20 exit 0 | 10 exit 0 |
