@@ -3,7 +3,7 @@ URL: https://github.com/dgraziotin/mbpfan
33License: GPLv3
44Group: System Environment/Daemons
55Version: %{SOURCE_VERSION }
6- Release: 1
6+ Release: 3
77Summary: A simple daemon to control fan speed on all MacBook/MacBook Pros (probably all Apple computers) for Linux 3.x.x and 4.x.x
88Source: v%{version }.tar.gz
99
@@ -35,16 +35,10 @@ rm -rf $RPM_BUILD_ROOT
3535
3636%post
3737%systemd_post mbpfan.service
38- # If it is a first installation then autoconfigure daemon
39- if [[ ${1} == 1 ]]; then
40- min_fan_speed=" $( cat /sys/devices/platform/applesmc.768/fan* _min| uniq| sort | head -1) "
41- max_fan_speed=" $( cat /sys/devices/platform/applesmc.768/fan* _max| uniq| sort | tail -1) "
42- let max_temp=$( cat /sys/devices/platform/coretemp.* /hwmon/hwmon* /temp* _max| uniq | sort | tail -1) /1000
43- sed -i " s/min_fan_speed = [^\t]\+/min_fan_speed = $min_fan_speed /g" /etc/mbpfan.conf
44- sed -i " s/max_fan_speed = [^\t]\+/max_fan_speed = $max_fan_speed /g" /etc/mbpfan.conf
45- sed -i " s/max_temp = [^\t]\+/max_temp = $max_temp /g" /etc/mbpfan.conf
46- fi
47- echo " Attention: mbpfan preconfigured with sane values, to run it type:"
38+ echo " mbpfan will auto detect sane values for min and max fan speeds."
39+ echo " If you want to customize these values please edit:"
40+ echo " /etc/mbpfan.conf"
41+ echo " To start the daemon now type:"
4842echo " systemctl start mbpfan"
4943echo " To run also at boot, type:"
5044echo " systemctl enable mbpfan"
@@ -63,6 +57,9 @@ echo "systemctl enable mbpfan"
6357/usr/lib/systemd/system/mbpfan.service
6458
6559%changelog
60+ * Mon Sep 10 2018 Michele Codutti <codutti@gmail.com> - 2.0.2-3
61+ - Removed autoconfig with suggested procedure because has been integrated on mbpfan.
62+
6663* Sun Aug 19 2018 Michele Codutti <codutti@gmail.com> - 2.0.2-2
6764- Autoconfig with suggested procedure.
6865- Initial packaging
0 commit comments