This file is indexed.

prerm is in multipath-tools 0.5.0+git1.656f8865-5ubuntu2.

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
#!/bin/sh
#
# multipath-tools prerm script
set -e

FIXED=0.4.8-1
# fix upgrades from versions << $FIXED where the init script would return an
# error on stop when the daemon isn't running:
if [ "$1" = "failed-upgrade" ] && dpkg --compare-versions "$2" lt "$FIXED"; then
    if [ -x "/etc/init.d/multipath-tools" ]; then
	echo "Ignoring broken stop target in versions << $FIXED..."
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d multipath-tools stop || true
	else
		/etc/init.d/multipath-tools stop || true
	fi
	exit 0
    fi
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/multipath-tools" ] || [ -e "/etc/init/multipath-tools.conf" ]; then
	invoke-rc.d multipath-tools stop || exit $?
fi
# End automatically added section