This file is indexed.

preinst is in nis 3.17.1-1build1.

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

set -e
umask 022

# See how we were called in detail
case "$1" in
	upgrade|install)
		# If we're upgrading, save the old settings from
		# /etc/init.d/nis so the postinst can substitute
		# them into the new /etc/default/nis config file.
		if [ ! -f /etc/default/nis ] && [ -f /etc/init.d/nis ]
		then
			grep "^NISSERVER=" /etc/init.d/nis \
				> /etc/default/nis.settings || true
		fi
		;;
	abort-upgrade)
		;;
	*)
		;;
esac

exit 0