301
|
1 #!/bin/sh
|
324
|
2 # $Id: prerm 459 2003-02-22 21:54:34Z 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
|
|
13 . /usr/share/debconf/confmodule
|
|
14 db_version 2.0
|
|
15 db_get noffle/port || RET=""
|
|
16 port="$RET"
|
|
17 [ -z "$port" -o "$port" = 119 ] && port=nntp
|
312
|
18 update-inetd --disable $port
|
324
|
19 db_stop
|
|
20 fi
|
301
|
21
|
|
22 exit 0
|