Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 951d73aae7b1af7abea27d38409238cb > scriptlet

lm_sensors-sensord-2.10.1-1.amd64.rpm

PREUN

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

POSTIN

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