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