Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 878b77ac8dd39f61409b3b9d92e32072 > scriptlet

acpid-1.0.4-7.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/acpid ]; then
/sbin/service acpid stop 1>&2 || :;
fi };	/sbin/chkconfig --del acpid
fi

POSTIN

/bin/sh
/sbin/chkconfig --add acpid
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/acpid ] && . /etc/sysconfig/acpid
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/acpid ]; then
/sbin/service acpid restart 1>&2 || :;
else
echo 'Run "/sbin/service acpid start" to start ACPI daemon.'
fi
fi };

Triggers

acpid <= 1.0.4-3

/bin/sh
RPM_SCRIPTVERBOSITY=5 
[ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm 
if [ -x /usr/bin/banner.sh ]; then 
	CMD="/usr/bin/banner.sh --stderr $([ $RPM_SCRIPTVERBOSITY -ge 5 ] && echo -s) -m acpid" 
else 
	CMD="cat >&2" 
fi 
eval $CMD << EOF 
Default configuration files have changed.
You might want to review your configuration in /etc/acpi
EOF