This file is indexed.

postinst is in powernap 2.18-0ubuntu2.

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

set -e

# Unconditionally overwrite config file, if upgrading from before 2.0 (syntax changed)
if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.0; then
	cat /usr/share/powernap/config > /etc/powernap/config
fi

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


exit 0