File: postrm

package info (click to toggle)
qpopper 2.3-4
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 560 kB
  • ctags: 415
  • sloc: ansic: 4,967; makefile: 153; sh: 43
file content (32 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh
#
#	Remove the qpopper entry from /etc/inittab and
#	restore the original one.
#

PATH=/bin:/usr/bin:/sbin:/usr/sbin

case "$1" in
	purge)
		rm -f /etc/pop.auth.*
		exit 0
		;;
	remove)
		;;
	*)
		# Do nothing...
		exit 0
		;;
esac

update-inetd --remove '^pop-3'

if [ -x /usr/sbin/in.pop3d ]
then
	update-inetd --group MAIL --add \
	'pop-3\t\tstream\ttcp\tnowait\troot\t/usr/sbin/tcpd\t/usr/sbin/in.pop3d'
fi

kill -1 `cat /var/run/inetd.pid` 2>/dev/null

exit 0