Mercurial > noffle
annotate debian/prerm @ 312:85bf9f705e70 noffle
[svn] minor code cleanup
author | godisch |
---|---|
date | Wed, 19 Feb 2003 19:06:45 +0000 |
parents | 3b5b7f3fd71f |
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 |