This file is indexed.

postinst is in iscsitarget 1.4.20.3+svn499-0ubuntu2.

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

set -e

dpkg-maintscript-helper mv_conffile /etc/ietd.conf /etc/iet/ietd.conf -- "@"
dpkg-maintscript-helper mv_conffile /etc/initiators.allow /etc/iet/initiators.allow -- "@"
dpkg-maintscript-helper mv_conffile /etc/initiators.deny /etc/iet/initiators.deny -- "@"

# Clean up old cruft
dpkg-maintscript-helper rm_conffile /etc/sysctl.d/30-iscsitarget.conf -- "@"

# Automatically added by dh_installinit
if [ -x "/etc/init.d/iscsitarget" ] || [ -e "/etc/init/iscsitarget.conf" ]; then
	if [ ! -e "/etc/init/iscsitarget.conf" ]; then
		update-rc.d iscsitarget defaults >/dev/null
	fi
	invoke-rc.d iscsitarget start || exit $?
fi
# End automatically added section


exit 0