annotate debian/prerm @ 302:4f4c233374ca noffle

[svn] removed sed
author godisch
date Sat, 15 Feb 2003 21:34:21 +0000
parents 3b5b7f3fd71f
children 85bf9f705e70
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
1 #!/bin/sh
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
2 # $Id: prerm 434 2003-02-14 13:54:32Z godisch $
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
5 . /usr/share/debconf/confmodule
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
6 db_version 2.0
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
7
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
8 db_get noffle/port || RET=''
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
9 port="$RET"
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
10 [ -z "$port" -o "$port" = 119 ] && port=nntp
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
11
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
12 case "$1" in
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
13 remove|upgrade|deconfigure)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
14 echo "Disabling inet.d entry for noffle..."
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
15 update-inetd --disable $port || :
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
16 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
17 failed-upgrade)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
18 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
19 *)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
20 echo "prerm called with unknown argument '$1'" >&2
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
21 exit 1
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
22 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
23 esac
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
24
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
25 exit 0