Mercurial > noffle
comparison debian/prerm @ 402:6b4d9c2087f0 noffle
[svn] debconf update
author | godisch |
---|---|
date | Tue, 03 Jun 2003 22:31:11 +0100 |
parents | a23b37308063 |
children | 775af896124a |
comparison
equal
deleted
inserted
replaced
401:b8a73c90bfde | 402:6b4d9c2087f0 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: prerm 499 2003-03-29 06:57:20Z godisch $ | 2 # $Id: prerm 544 2003-06-03 21:31:11Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 . /usr/share/debconf/confmodule | |
6 db_version 2.0 | |
7 | 5 |
8 if [ -x /usr/sbin/invoke-rc.d ]; then | 6 if [ -x /usr/sbin/invoke-rc.d ]; then |
9 invoke-rc.d noffle stop | 7 invoke-rc.d noffle stop |
10 elif [ -x /etc/init.d/noffle ]; then | 8 elif [ -x /etc/init.d/noffle ]; then |
11 /etc/init.d/noffle stop | 9 /etc/init.d/noffle stop |
12 fi | 10 fi |
13 | 11 |
14 if [ -e /usr/share/debconf/confmodule ]; then | 12 if [ -e /usr/share/debconf/confmodule ]; then |
13 . /usr/share/debconf/confmodule | |
14 db_version 2.0 | |
15 db_get noffle/port | 15 db_get noffle/port |
16 port="$RET" | 16 port="$RET" |
17 [ -z "$port" -o "$port" = 119 ] && port=nntp || : | 17 if [ -z "$port" -o "$port" = 119 ]; then |
18 port=nntp | |
19 fi | |
18 update-inetd --disable $port | 20 update-inetd --disable $port |
21 db_stop | |
19 fi | 22 fi |
20 | 23 |
21 db_stop | |
22 exit 0 | 24 exit 0 |