This file is indexed.

prerm is in multipath-tools 0.7.4-2ubuntu3.

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
#!/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/11.1.4ubuntu1
if [ -x "/etc/init.d/multipath-tools" ]; then
	invoke-rc.d multipath-tools stop || exit 1
fi
# End automatically added section
# Automatically added by dh_systemd_start/11.1.4ubuntu1
if [ -d /run/systemd/system ]; then
	deb-systemd-invoke stop 'multipathd.socket' >/dev/null || true
fi
# End automatically added section