annotate debian/prerm @ 406:44ffdb180788 noffle

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