annotate debian/prerm @ 402:6b4d9c2087f0 noffle

[svn] debconf update
author godisch
date Tue, 03 Jun 2003 22:31:11 +0100
parents a23b37308063
children 775af896124a
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
402
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
2 # $Id: prerm 544 2003-06-03 21:31:11Z godisch $
301
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
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
6 if [ -x /usr/sbin/invoke-rc.d ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
7 invoke-rc.d noffle stop
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
8 elif [ -x /etc/init.d/noffle ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
9 /etc/init.d/noffle stop
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
10 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
11
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
12 if [ -e /usr/share/debconf/confmodule ]; then
402
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
13 . /usr/share/debconf/confmodule
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
14 db_version 2.0
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"
402
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
17 if [ -z "$port" -o "$port" = 119 ]; then
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
18 port=nntp
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
19 fi
312
85bf9f705e70 [svn] minor code cleanup
godisch
parents: 301
diff changeset
20 update-inetd --disable $port
402
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
21 db_stop
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
22 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
23
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
24 exit 0