pkg://acpid_1.0.6-13_ia64.deb:39150/postinst
info downloads
#!/bin/sh
set -e
# Remove old init.d links
if dpkg --compare-versions "$2" lt "1.0.4-6"; then
rm -f /etc/rc[06].d/K21acpid
fi
if dpkg --compare-versions "$2" lt "1.0.6-6"; then
rm -f /etc/rc[016].d/K20acpid /etc/rc[2-5].d/S20acpid
fi
HAL_NEEDS_RESTARTING=no
case "$1" in
configure|reconfigure)
#
if [ -x /etc/init.d/hal ] && [ -f /var/run/hald/hald.pid ]; then
HAL_NEEDS_RESTARTING=yes
invoke-rc.d hal stop
fi
;;
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/acpid" ]; then
update-rc.d acpid defaults 12 88 >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d acpid start || exit $?
else
/etc/init.d/acpid start || exit $?
fi
fi
# End automatically added section
case "$1" in
configure|reconfigure)
if [ -x /etc/init.d/hal ] && [ "$HAL_NEEDS_RESTARTING" = "yes" ]; then
invoke-rc.d hal start
fi
;;
esac