@@ -3,7 +3,7 @@ URL: https://github.com/dgraziotin/mbpfan
3
3
License: GPLv3
4
4
Group: System Environment/Daemons
5
5
Version: %{SOURCE_VERSION }
6
- Release: 1
6
+ Release: 3
7
7
Summary: 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
8
8
Source: v%{version }.tar.gz
9
9
@@ -35,16 +35,10 @@ rm -rf $RPM_BUILD_ROOT
35
35
36
36
%post
37
37
%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:"
48
42
echo " systemctl start mbpfan"
49
43
echo " To run also at boot, type:"
50
44
echo " systemctl enable mbpfan"
@@ -63,6 +57,9 @@ echo "systemctl enable mbpfan"
63
57
/usr/lib/systemd/system/mbpfan.service
64
58
65
59
%changelog
60
+ *
Mon Sep 10 2018 Michele Codutti <[email protected] > -
2.0.2-3
61
+ - Removed autoconfig with suggested procedure because has been integrated on mbpfan.
62
+
66
63
*
Sun Aug 19 2018 Michele Codutti <[email protected] > -
2.0.2-2
67
64
- Autoconfig with suggested procedure.
68
65
- Initial packaging
0 commit comments