This file is indexed.

postinst is in inetutils-syslogd 2:1.9.2-1.

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
31
32
33
34
35
#!/bin/sh

set -e

# Move a conffile without triggering a dpkg question
mv_conffile()
{
  oldconffile="$1"
  newconffile="$2"

  if [ -e "$oldconffile" ]; then
    echo "Preserving user changes to $newconffile ..."
    mv -f "$newconffile" "$newconffile".dpkg-new
    mv -f "$oldconffile" "$newconffile"
  fi
}

case "$1" in
configure)
  if dpkg --compare-versions "$2" lt "2:1.5.dfsg.1-5"; then
    mv_conffile /etc/default/syslogd /etc/default/inetutils-syslogd
  fi
esac

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


exit 0