annotate debian/prerm @ 411:b9018588cc52 noffle

[svn] fixed update-inetd
author godisch
date Thu, 19 Jun 2003 23:25:30 +0100
parents 775af896124a
children a7dbefcafc43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
1 #!/bin/sh
411
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
2 # $Id: prerm 554 2003-06-19 22:25:30Z godisch $
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
5
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
6 if [ -e /usr/share/debconf/confmodule ]; then
402
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
7 . /usr/share/debconf/confmodule
411
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
8 db_get noffle/debconf
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
9 if [ "$RET" = true ]; then
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
10 db_get noffle/port
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
11 port="$RET"
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
12 if [ -z "$port" -o "$port" = 119 ]; then
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
13 port=nntp
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
14 fi
b9018588cc52 [svn] fixed update-inetd
godisch
parents: 404
diff changeset
15 update-inetd --disable "$port"
402
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
16 fi
6b4d9c2087f0 [svn] debconf update
godisch
parents: 360
diff changeset
17 db_stop
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
18 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
19
404
775af896124a [svn] fixed debconf problem
godisch
parents: 402
diff changeset
20 if [ -x /usr/sbin/invoke-rc.d ]; then
775af896124a [svn] fixed debconf problem
godisch
parents: 402
diff changeset
21 invoke-rc.d noffle stop
775af896124a [svn] fixed debconf problem
godisch
parents: 402
diff changeset
22 elif [ -x /etc/init.d/noffle ]; then
775af896124a [svn] fixed debconf problem
godisch
parents: 402
diff changeset
23 /etc/init.d/noffle stop
775af896124a [svn] fixed debconf problem
godisch
parents: 402
diff changeset
24 fi
775af896124a [svn] fixed debconf problem
godisch
parents: 402
diff changeset
25
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
26 exit 0