This file is indexed.

prerm is in tgt 1:1.0.63-1ubuntu1.

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

# Stop tgtd if no initiators are currently connected (package removal is
# handled by dh below). This is a bit racey but simpler and more robust than
# setting tgtd into and out of offline mode.
if [ -x /etc/init.d/tgt ]; then
	if ! tgtadm --mode target --op show | grep -q Connection; then
		invoke-rc.d tgt stop
	fi
fi

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