+cat << EOF
+ *********************************************************************
+ * *
+ * NOTE: *
+ * You have to configure sensors to match your motherboard sensors *
+ * in /etc/sensors.conf and /etc/sysconfig/sensors_modules. Use *
+ * sensors-detect script which can help you find proper modules. *
+ * *
+ *********************************************************************
+EOF
+fi
+if [ -f "%{smodule}" ]; then
+ /sbin/chkconfig --add sensors_modules
+ %service sensors_modules restart "sensors modules"
+fi
+if [ -f "%{sdaemon}" ]; then
+ /sbin/chkconfig --add sensors
+ %service sensors restart "sensors daemon"
+fi
+
+%preun config-default
+if [ "$1" = "0" ]; then
+ if [ -f "%{sdaemon}" ]; then
+ %service sensors stop
+ /sbin/chkconfig --del sensors
+ fi
+ if [ -f "%{smodule}" ]; then
+ %service sensors_modules stop
+ /sbin/chkconfig --del sensors_modules
+ fi
+fi
+
+%post sensord
+if [ -f "%{cmodule}" ]; then
+ /sbin/chkconfig --add sensors
+ %service sensors restart "sensors daemon"