comparison debian/prerm @ 324:5ec39beae9c5 noffle

[svn] cleanup
author godisch
date Sat, 22 Feb 2003 21:54:34 +0000
parents 85bf9f705e70
children c36eb2596531
comparison
equal deleted inserted replaced
323:67ce1ddf7313 324:5ec39beae9c5
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: prerm 446 2003-02-19 19:06:45Z godisch $ 2 # $Id: prerm 459 2003-02-22 21:54:34Z godisch $
3 3
4 set -e 4 set -e
5 . /usr/share/debconf/confmodule
6 db_version 2.0
7 5
8 db_get noffle/port || RET='' 6 if [ -x /usr/sbin/invoke-rc.d ]; then
9 port="$RET" 7 invoke-rc.d noffle stop
10 [ -z "$port" -o "$port" = 119 ] && port=nntp 8 elif [ -x /etc/init.d/noffle ]; then
9 /etc/init.d/noffle stop
10 fi
11 11
12 case "$1" in 12 if [ -e /usr/share/debconf/confmodule ]; then
13 remove|upgrade|deconfigure) 13 . /usr/share/debconf/confmodule
14 echo "Disabling inet.d entry for noffle..." 14 db_version 2.0
15 db_get noffle/port || RET=""
16 port="$RET"
17 [ -z "$port" -o "$port" = 119 ] && port=nntp
15 update-inetd --disable $port 18 update-inetd --disable $port
16 ;; 19 db_stop
17 failed-upgrade) 20 fi
18 ;;
19 *)
20 echo "prerm called with unknown argument '$1'" >&2
21 exit 1
22 ;;
23 esac
24 21
25 exit 0 22 exit 0