PREUN
/bin/sh
/usr/share/rpm-helper/del-service lm_sensors $1 lm_sensors
/usr/share/rpm-helper/del-service lm_sensors $1 sensord
POSTIN
/bin/sh
MIGRATE=
[ ! -f /etc/systemd/system/multi-user.target.wants/lm_sensors.service ] && MIGRATE=yes
/usr/share/rpm-helper/add-service lm_sensors $1 lm_sensors
/usr/share/rpm-helper/add-service lm_sensors $1 sensord
# (cg) Deal with a quirk of packaging... enable sensord if lm_sensors is enabled
if [ "$MIGRATE" = "yes" -a -f /etc/systemd/system/multi-user.target.wants/lm_sensors.service ]; then
ln -sf /usr/lib/systemd/system/sensord.service /etc/systemd/system/multi-user.target.wants/sensord.service
fi