annotate debian/prerm @ 393:e113df4af08b noffle

[svn] added debconf-2.0 dependency option
author godisch
date Sat, 24 May 2003 07:30:38 +0100
parents a23b37308063
children 6b4d9c2087f0
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
360
a23b37308063 [svn] || true cleanup
godisch
parents: 330
diff changeset
2 # $Id: prerm 499 2003-03-29 06:57:20Z 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
360
a23b37308063 [svn] || true cleanup
godisch
parents: 330
diff changeset
15 db_get noffle/port
324
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