postinst is in lcdproc 0.5.9-2.
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 | #!/bin/sh -e
# activate udev rule before cme tries to upgrade the configuration
udevadm trigger --action=change
# Automatically added by dh_cme_upgrade/UNDECLARED
# 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/10.10.5ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/LCDd" ]; then
update-rc.d LCDd defaults >/dev/null
invoke-rc.d LCDd start || exit $?
fi
fi
# End automatically added section
|