Mercurial > noffle
annotate debian/prerm @ 319:1e595c7ec15f noffle
[svn] * src/noffle.c: Give usage (rather than abort()) if option is unrecognised.
| author | bears |
|---|---|
| date | Fri, 21 Feb 2003 16:02:01 +0000 |
| parents | 85bf9f705e70 |
| children | 5ec39beae9c5 |
| rev | line source |
|---|---|
| 301 | 1 #!/bin/sh |
| 312 | 2 # $Id: prerm 446 2003-02-19 19:06:45Z godisch $ |
| 301 | 3 |
| 4 set -e | |
| 5 . /usr/share/debconf/confmodule | |
| 6 db_version 2.0 | |
| 7 | |
| 8 db_get noffle/port || RET='' | |
| 9 port="$RET" | |
| 10 [ -z "$port" -o "$port" = 119 ] && port=nntp | |
| 11 | |
| 12 case "$1" in | |
| 13 remove|upgrade|deconfigure) | |
| 14 echo "Disabling inet.d entry for noffle..." | |
| 312 | 15 update-inetd --disable $port |
| 301 | 16 ;; |
| 17 failed-upgrade) | |
| 18 ;; | |
| 19 *) | |
| 20 echo "prerm called with unknown argument '$1'" >&2 | |
| 21 exit 1 | |
| 22 ;; | |
| 23 esac | |
| 24 | |
| 25 exit 0 |
