File: postrm

package info (click to toggle)
pidentd 3.0.7-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 648 kB
  • ctags: 585
  • sloc: ansic: 6,162; sh: 1,834; makefile: 142
file content (22 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e
# $Id: postrm,v 1.4 2000/03/18 08:35:19 herbert Exp $

case "$1" in
abort-install | remove | abort-upgrade | upgrade | failed-upgrade | disappear)
	;;
purge)
	if id -u identd >/dev/null 2>&1; then
		userdel -r identd
	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 "ident	.*	/usr/sbin/identd"
	fi
	;;
*)
	echo "$0: incorrect arguments: $*" >&2
	exit 1
	;;
esac

#DEBHELPER#