This file is indexed.

postrm is in telnetd-ssl 0.17.24+0.1-23build1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/sh -e
# $Id: telnetd.postrm,v 1.7 2006-06-16 18:43:11 ianb Exp $

case "$1" in
abort-install | abort-upgrade | upgrade | failed-upgrade)
	;;
remove | disappear)
	# telnetd user evidently once had a home, telnetd-ssl user never did.
	home=~telnetd
	set +e
	userdel telnetd >/dev/null 2>&1
	err=$?
	set -e
	case $err in
	0)
		if [ "$home" = /usr/lib/telnetd ]; then
			rmdir --ignore-fail-on-non-empty /usr/lib/telnetd || true
		fi
		;;
	6)
		;;
	*)
		exit $err
		;;
	esac

	set +e
	userdel telnetd-ssl >/dev/null 2>&1
	err=$?
	set -e
	case $err in
	0 | 6)
		;;
	*)
		exit $err
		;;
	esac

	set +e
	groupdel telnetd >/dev/null 2>&1
	err=$?
	set -e
	case $err in
	0 | 6)
		;;
	*)
		exit $err
		;;
	esac
	;;
purge)
	# If update-inetd is not installed, then we don't need to do the remove.
	if test -x /usr/sbin/update-inetd;  then
		update-inetd --remove "#<off># telnet"
	fi
	cd /etc/telnetd-ssl
	PATH=$PATH:/usr/bin/ssl
#	rm -f `openssl x509 -noout -hash < telnetd.pem`.0
	rm -f telnetd.pem
	;;
*)
	echo "$0: incorrect arguments: $*" >&2
	exit 1
	;;
esac



exit 0