Mercurial > noffle
comparison debian/prerm @ 404:775af896124a noffle
[svn] fixed debconf problem
| author | godisch |
|---|---|
| date | Thu, 05 Jun 2003 18:27:28 +0100 |
| parents | 6b4d9c2087f0 |
| children | b9018588cc52 |
comparison
equal
deleted
inserted
replaced
| 403:19a27707200f | 404:775af896124a |
|---|---|
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # $Id: prerm 544 2003-06-03 21:31:11Z godisch $ | 2 # $Id: prerm 546 2003-06-05 17:27:28Z godisch $ |
| 3 | 3 |
| 4 set -e | 4 set -e |
| 5 | 5 |
| 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 | |
| 11 | |
| 12 if [ -e /usr/share/debconf/confmodule ]; then | 6 if [ -e /usr/share/debconf/confmodule ]; then |
| 13 . /usr/share/debconf/confmodule | 7 . /usr/share/debconf/confmodule |
| 14 db_version 2.0 | |
| 15 db_get noffle/port | 8 db_get noffle/port |
| 16 port="$RET" | 9 port="$RET" |
| 17 if [ -z "$port" -o "$port" = 119 ]; then | 10 if [ -z "$port" -o "$port" = 119 ]; then |
| 18 port=nntp | 11 port=nntp |
| 19 fi | 12 fi |
| 20 update-inetd --disable $port | 13 update-inetd --disable $port |
| 21 db_stop | 14 db_stop |
| 22 fi | 15 fi |
| 23 | 16 |
| 17 if [ -x /usr/sbin/invoke-rc.d ]; then | |
| 18 invoke-rc.d noffle stop | |
| 19 elif [ -x /etc/init.d/noffle ]; then | |
| 20 /etc/init.d/noffle stop | |
| 21 fi | |
| 22 | |
| 24 exit 0 | 23 exit 0 |
