blob: cc0531c8ada27e5f6a24595a64cb880199bac8da (
plain)
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
|
#!/bin/sh -e
# $Id: telnetd.postrm,v 1.6 1999/11/25 21:27:08 herbert Exp $
if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
suidunregister -s telnetd /usr/lib/telnetd/login
fi
case "$1" in
abort-install | remove | abort-upgrade | upgrade | failed-upgrade | disappear)
;;
purge)
if id telnetd >/dev/null 2>&1; then
userdel telnetd
fi
if sg telnetd -c true 2>/dev/null; then
groupdel telnetd
fi
# If netbase is not installed, then we don't need to do the remove.
if command -v update-inetd >/dev/null 2>&1; then
update-inetd --remove "telnet .* /usr/sbin/in.telnetd"
fi
;;
*)
echo "$0: incorrect arguments: $*" >&2
exit 1
;;
esac
#DEBHELPER#
|