301
|
1 #!/bin/sh
|
404
|
2 # $Id: prerm 546 2003-06-05 17:27:28Z godisch $
|
301
|
3
|
|
4 set -e
|
|
5
|
324
|
6 if [ -e /usr/share/debconf/confmodule ]; then
|
402
|
7 . /usr/share/debconf/confmodule
|
360
|
8 db_get noffle/port
|
324
|
9 port="$RET"
|
402
|
10 if [ -z "$port" -o "$port" = 119 ]; then
|
|
11 port=nntp
|
|
12 fi
|
312
|
13 update-inetd --disable $port
|
402
|
14 db_stop
|
324
|
15 fi
|
301
|
16
|
404
|
17 if [ -x /usr/sbin/invoke-rc.d ]; then
|
|
18 invoke-rc.d noffle stop
|
|
19 elif [ -x /etc/init.d/noffle ]; then
|
|
20 /etc/init.d/noffle stop
|
|
21 fi
|
|
22
|
301
|
23 exit 0
|