postinst is in acpi-support 0.140.
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 | #!/bin/bash
case "$1" in
configure)
invoke-rc.d acpid restart>/dev/null
;;
*)
;;
esac
#fix up old packages.
if [ -L /etc/rc2.d/S20acpi-support ]; then
# we're probably using defaults, so let's blow us away.
update-rc.d -f acpi-support remove
fi
if [ ! -L /etc/rc1.d/K20acpi-support -a -L /etc/rc2.d/S99acpi-support ]; then
update-rc.d -f acpi-support remove
fi
# Remove shutdown and reboot links; this init script does not need them.
if dpkg --compare-versions "$2" lt "0.86"; then
rm -f /etc/rc0.d/K20acpi-support /etc/rc6.d/K20acpi-support
fi
if dpkg --compare-versions "$2" lt 0.47; then
if [ -f /var/lib/acpi-support/powerstate ]; then
chmod 644 /var/lib/acpi-support/powerstate;
fi
if [ -f /var/lib/acpi-support/lidstate ]; then
chmod 644 /var/lib/acpi-support/lidstate;
fi
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/acpi-support" ]; then
update-rc.d acpi-support start 99 2 3 4 5 . stop 20 1 . >/dev/null || exit $?
fi
# End automatically added section
|