Mercurial > noffle
annotate debian/prerm @ 416:fbdcd908aa7c noffle
[svn] fixed udpate-inetd
| author | godisch |
|---|---|
| date | Fri, 20 Jun 2003 06:46:49 +0100 |
| parents | a7dbefcafc43 |
| children | e5bd838e0c27 |
| rev | line source |
|---|---|
| 301 | 1 #!/bin/sh |
| 415 | 2 # $Id: prerm 558 2003-06-20 05:46:35Z godisch $ |
| 301 | 3 |
| 4 set -e | |
| 5 | |
| 324 | 6 if [ -e /usr/share/debconf/confmodule ]; then |
| 402 | 7 . /usr/share/debconf/confmodule |
| 411 | 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" | |
| 402 | 16 fi |
| 17 db_stop | |
| 324 | 18 fi |
| 301 | 19 |
| 20 exit 0 |
