This file is indexed.

preinst is in ulogd2 2.0.3-1ubuntu2.

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

# Ensure any ulogd-1.x instances are stopped
if [ -x "/etc/init.d/ulogd" ]; then
	invoke-rc.d ulogd stop || true
fi

# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/ulogd2" ] && [ -L "/etc/init.d/ulogd2" ] \
	   && [ $(readlink -f "/etc/init.d/ulogd2") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/ulogd2"
	fi
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init.d/ulogd 2.0.2-4~ ulogd -- "$@"
# End automatically added section