Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 4440afcac20d18b6de027a316592cabb > scriptlet

powernowd-0.97-1.amd64.rpm

PREUN

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

POSTIN

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