Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > 1156c2558ba0077af708bf6e14eff783 > scriptlet

lm_sensors-3.4.0.git20180318-1.mga6.x86_64.rpm

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