This file is indexed.

postinst is in miredo 1.2.3-1ubuntu1.

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

set -e

case "$1" in
  configure)
    if ! getent passwd miredo >/dev/null; then
      adduser --quiet --system --home /var/run/miredo --no-create-home miredo
    fi
    if [ ! -e /dev/net/tun ]; then
      echo "Creating required /dev/net/tun device file..."
      (cd /dev; ./MAKEDEV tun) || true
    fi
  ;;
esac

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