annotate debian/prerm @ 354:5b6f2f3e766f noffle

[svn] updated dependencies
author godisch
date Sun, 23 Mar 2003 13:40:32 +0000
parents 56c3a43af1d5
children a23b37308063
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
330
56c3a43af1d5 [svn] small bugfixes
godisch
parents: 325
diff changeset
2 # $Id: prerm 465 2003-02-25 19:15:27Z godisch $
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
325
c36eb2596531 [svn] fixed inclusion of db_*
godisch
parents: 324
diff changeset
5 . /usr/share/debconf/confmodule
c36eb2596531 [svn] fixed inclusion of db_*
godisch
parents: 324
diff changeset
6 db_version 2.0
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
7
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
8 if [ -x /usr/sbin/invoke-rc.d ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
9 invoke-rc.d noffle stop
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
10 elif [ -x /etc/init.d/noffle ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
11 /etc/init.d/noffle stop
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
12 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
13
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
14 if [ -e /usr/share/debconf/confmodule ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
15 db_get noffle/port || RET=""
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
16 port="$RET"
330
56c3a43af1d5 [svn] small bugfixes
godisch
parents: 325
diff changeset
17 [ -z "$port" -o "$port" = 119 ] && port=nntp || :
312
85bf9f705e70 [svn] minor code cleanup
godisch
parents: 301
diff changeset
18 update-inetd --disable $port
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
19 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
20
325
c36eb2596531 [svn] fixed inclusion of db_*
godisch
parents: 324
diff changeset
21 db_stop
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
22 exit 0