This file is indexed.

postinst is in radvd 1:1.9.1-1.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
21
22
23
24
25
26
27
28
29
#!/bin/sh

set -e

if [ "$1" = configure ]; then
  if ! getent passwd radvd >/dev/null; then
    adduser --quiet --system --no-create-home --home /var/run/radvd radvd
  fi
  for i in /var/run/radvd; do
    if ! dpkg-statoverride --list $i >/dev/null; then
      dpkg-statoverride --update --add radvd root 4755 $i
    fi
  done
fi

# Recover from incorrect init.d script headers in version 1:1.3-1 and earlier
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "1:1.3-1" \
   && [ -f /etc/rcS.d/S[0-9][0-9]radvd ] ; then
  update-rc.d -f radvd remove
fi

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