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