This file is indexed.

postinst is in olsrd 0.6.6.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
#!/bin/sh

set -e

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

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