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