annotate debian/prerm @ 324:5ec39beae9c5 noffle

[svn] cleanup
author godisch
date Sat, 22 Feb 2003 21:54:34 +0000
parents 85bf9f705e70
children c36eb2596531
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
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
2 # $Id: prerm 459 2003-02-22 21:54:34Z 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 [ -x /usr/sbin/invoke-rc.d ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
7 invoke-rc.d noffle stop
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
8 elif [ -x /etc/init.d/noffle ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
9 /etc/init.d/noffle stop
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
10 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
11
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
12 if [ -e /usr/share/debconf/confmodule ]; then
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
13 . /usr/share/debconf/confmodule
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
14 db_version 2.0
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
15 db_get noffle/port || RET=""
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
16 port="$RET"
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
17 [ -z "$port" -o "$port" = 119 ] && port=nntp
312
85bf9f705e70 [svn] minor code cleanup
godisch
parents: 301
diff changeset
18 update-inetd --disable $port
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
19 db_stop
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
20 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
21
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
22 exit 0