Mercurial > noffle
comparison debian/prerm @ 325:c36eb2596531 noffle
[svn] fixed inclusion of db_*
author | godisch |
---|---|
date | Sun, 23 Feb 2003 15:16:46 +0000 |
parents | 5ec39beae9c5 |
children | 56c3a43af1d5 |
comparison
equal
deleted
inserted
replaced
324:5ec39beae9c5 | 325:c36eb2596531 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: prerm 459 2003-02-22 21:54:34Z godisch $ | 2 # $Id: prerm 460 2003-02-23 15:16:46Z godisch $ |
3 | 3 |
4 set -e | 4 set -e |
5 . /usr/share/debconf/confmodule | |
6 db_version 2.0 | |
5 | 7 |
6 if [ -x /usr/sbin/invoke-rc.d ]; then | 8 if [ -x /usr/sbin/invoke-rc.d ]; then |
7 invoke-rc.d noffle stop | 9 invoke-rc.d noffle stop |
8 elif [ -x /etc/init.d/noffle ]; then | 10 elif [ -x /etc/init.d/noffle ]; then |
9 /etc/init.d/noffle stop | 11 /etc/init.d/noffle stop |
10 fi | 12 fi |
11 | 13 |
12 if [ -e /usr/share/debconf/confmodule ]; then | 14 if [ -e /usr/share/debconf/confmodule ]; then |
13 . /usr/share/debconf/confmodule | |
14 db_version 2.0 | |
15 db_get noffle/port || RET="" | 15 db_get noffle/port || RET="" |
16 port="$RET" | 16 port="$RET" |
17 [ -z "$port" -o "$port" = 119 ] && port=nntp | 17 [ -z "$port" -o "$port" = 119 ] && port=nntp |
18 update-inetd --disable $port | 18 update-inetd --disable $port |
19 db_stop | |
20 fi | 19 fi |
21 | 20 |
21 db_stop | |
22 exit 0 | 22 exit 0 |