This file is indexed.

prerm is in pdns-recursor 3.5.3-1.

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
#!/bin/sh
#
# Add an error handler to catch up with a fault in the pdns-recursor script.

set -e

# Set the old version.
MODE=$1
OLDVERSION=$2

# Init script has errors in previous versions.
initscript_error() {

	# Versions older then 3.2-4 have a bug in the initscript.
	if dpkg --compare-versions "$OLDVERSION" lt-nl "3.2-4" &&
		[ "$MODE" = "failed-upgrade" ]; then

		return 0
	fi

	return $1
}

# Automatically added by dh_installinit
if [ -x "/etc/init.d/pdns-recursor" ] || [ -e "/etc/init/pdns-recursor.conf" ]; then
	invoke-rc.d pdns-recursor stop || initscript_error
fi
# End automatically added section


exit 0