This file is indexed.

postinst is in lcdproc 0.5.7-4.

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
36
37
38
39
# activate udev rule before cme tries to upgrade the configuration
udevadm trigger --action=change

# Automatically added by dh_cme_upgrade
# In case of error (error in configuration file or model bug), the
# configuration file is left as is.

. /usr/share/debconf/confmodule

db_get  lcdproc/auto-upgrade-config

# testing perl is required to avoid problem in embedded environments
if [ "$RET" = true ] && [ -x "/usr/bin/perl" ] && [ -x "/usr/bin/cme" ] 
then
	cme fix lcdproc -create -backup dpkg-old -try-app-as-model -force || \
	echo "WARNING: upgrade with cme failed: Run 'sudo cme migrate lcdproc -force'."
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/LCDd" ]; then
		update-rc.d LCDd defaults >/dev/null
	fi
	if [ -x "/etc/init.d/LCDd" ] || [ -e "/etc/init/LCDd.conf" ]; then
		invoke-rc.d LCDd start || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
	if [ -e "/etc/udev/rules.d/z60_lcdproc.rules" ]; then
		echo "Preserving user changes to /etc/udev/rules.d/60-lcdproc.rules ..."
		if [ -e "/etc/udev/rules.d/60-lcdproc.rules" ]; then
			mv -f "/etc/udev/rules.d/60-lcdproc.rules" "/etc/udev/rules.d/60-lcdproc.rules.dpkg-new"
		fi
		mv -f "/etc/udev/rules.d/z60_lcdproc.rules" "/etc/udev/rules.d/60-lcdproc.rules"
	fi
fi
# End automatically added section