This file is indexed.

postinst is in smartmontools 5.41+svn3365-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
#!/bin/sh
set -e

# Remove shutdown and reboot links; this init script does not need them.
if dpkg --compare-versions "$2" lt "5.38+svn2879-1"; then
	if [ -e /etc/rc0.d/K20smartmontools ]; then
		rm -f /etc/rc0.d/K20smartmontools
	fi
	if [ -e /etc/rc6.d/K20smartmontools ]; then
		rm -f /etc/rc6.d/K20smartmontools
	fi
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/smartmontools" ]; then
	update-rc.d smartmontools start 20 2 3 4 5 . stop 20 1 . >/dev/null
	invoke-rc.d smartmontools start || exit $?
fi
# End automatically added section