PREUN
/bin/sh
if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/sensors ]; then /etc/rc.d/init.d/sensors stop >&2 fi /sbin/chkconfig --del sensors fi
POSTIN
/bin/sh
/sbin/chkconfig --add sensors if [ -f /var/lock/subsys/sensors ]; then /etc/rc.d/init.d/sensors restart >&2 else echo "You have to configure sensors modules in /etc/sysconfig/sensors" echo echo "Run \"/etc/rc.d/init.d/sensors start\" to start sensors daemon." >&2 fi