Mercurial > noffle
annotate debian/prerm @ 302:4f4c233374ca noffle
[svn] removed sed
author | godisch |
---|---|
date | Sat, 15 Feb 2003 21:34:21 +0000 |
parents | 3b5b7f3fd71f |
children | 85bf9f705e70 |
rev | line source |
---|---|
301 | 1 #!/bin/sh |
2 # $Id: prerm 434 2003-02-14 13:54:32Z godisch $ | |
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..." | |
15 update-inetd --disable $port || : | |
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 |