This file is indexed.

postinst is in powstatd 1.5.1-9.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
#
# postinst script for the powstatd package

set -e
. /usr/share/debconf/confmodule

case "$1" in
    configure)

        # Versions prior to 1.5.1-3 used file readable by all, but no longer.
        if [ -f /etc/powstatd.conf ]; then
            chmod go-rwx /etc/powstatd.conf
        fi

        ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        ;;
esac

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


db_stop