This file is indexed.

prerm is in nis 3.17-32ubuntu6.

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
#! /bin/sh

set -e

case "$1" in
	remove|upgrade|remove-in-favour|deconfigure-in-favour)
		# /sbin/unix_chkpwd is installed setgid shadow by default; for
		# NIS we need setuid root, so the postinst installed a
		# statoverride.  Remove that override again here.
                if OVR=$(dpkg-statoverride --list /sbin/unix_chkpwd) && \
                   [ "$OVR" = "root root 4755 /sbin/unix_chkpwd" ]; then
			dpkg-statoverride --remove /sbin/unix_chkpwd
			chown root:shadow /sbin/unix_chkpwd
			chmod 2755 /sbin/unix_chkpwd
                fi
		;;
	failed-upgrade)
		;;
	*)
		;;
esac

# Automatically added by dh_installinit
if ([ -x "/etc/init.d/ypbind" ] || [ -e "/etc/init/ypbind.conf" ]) && \
   [ "$1" = remove ]; then
	invoke-rc.d ypbind stop || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
if ([ -x "/etc/init.d/ypserv" ] || [ -e "/etc/init/ypserv.conf" ]) && \
   [ "$1" = remove ]; then
	invoke-rc.d ypserv stop || exit $?
fi
# End automatically added section


exit 0