Mercurial > noffle
comparison debian/prerm @ 411:b9018588cc52 noffle
[svn] fixed update-inetd
| author | godisch |
|---|---|
| date | Thu, 19 Jun 2003 23:25:30 +0100 |
| parents | 775af896124a |
| children | a7dbefcafc43 |
comparison
equal
deleted
inserted
replaced
| 410:c9ff77f643a2 | 411:b9018588cc52 |
|---|---|
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # $Id: prerm 546 2003-06-05 17:27:28Z godisch $ | 2 # $Id: prerm 554 2003-06-19 22:25:30Z godisch $ |
| 3 | 3 |
| 4 set -e | 4 set -e |
| 5 | 5 |
| 6 if [ -e /usr/share/debconf/confmodule ]; then | 6 if [ -e /usr/share/debconf/confmodule ]; then |
| 7 . /usr/share/debconf/confmodule | 7 . /usr/share/debconf/confmodule |
| 8 db_get noffle/port | 8 db_get noffle/debconf |
| 9 port="$RET" | 9 if [ "$RET" = true ]; then |
| 10 if [ -z "$port" -o "$port" = 119 ]; then | 10 db_get noffle/port |
| 11 port=nntp | 11 port="$RET" |
| 12 if [ -z "$port" -o "$port" = 119 ]; then | |
| 13 port=nntp | |
| 14 fi | |
| 15 update-inetd --disable "$port" | |
| 12 fi | 16 fi |
| 13 update-inetd --disable $port | |
| 14 db_stop | 17 db_stop |
| 15 fi | 18 fi |
| 16 | 19 |
| 17 if [ -x /usr/sbin/invoke-rc.d ]; then | 20 if [ -x /usr/sbin/invoke-rc.d ]; then |
| 18 invoke-rc.d noffle stop | 21 invoke-rc.d noffle stop |
