From bb264080a58366a007177d74d96442595c1bc319 Mon Sep 17 00:00:00 2001 From: "Yi Yang @ Minthe" Date: Sun, 6 Jul 2014 23:59:06 -0700 Subject: [PATCH 1/2] Fix makefile: no redundant sudo; Fix mbpfan.c: no more sudden silence when starting. --- Makefile | 4 ++-- src/mbpfan.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 125897b..6bee6a2 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ clean: tests: make install - sudo /usr/sbin/mbpfan -f -v -t + /usr/sbin/mbpfan -f -v -t uninstall: rm /usr/sbin/mbpfan @@ -78,4 +78,4 @@ install: @echo " sudo make tests" @echo "" rebuild: clean all -#rebuild is not entirely correct \ No newline at end of file +#rebuild is not entirely correct diff --git a/src/mbpfan.c b/src/mbpfan.c index f2706db..705aa2d 100755 --- a/src/mbpfan.c +++ b/src/mbpfan.c @@ -504,8 +504,6 @@ void mbpfan() } } - sleep(polling_interval); - step_up = (float)( max_fan_speed - min_fan_speed ) / (float)( ( max_temp - high_temp ) * ( max_temp - high_temp + 1 ) / 2 ); From 451bbb9bc2d64f5e9168176040d0eee82f6cb920 Mon Sep 17 00:00:00 2001 From: "Yi Yang @ Minthe" Date: Mon, 7 Jul 2014 13:24:15 -0700 Subject: [PATCH 2/2] Fix documentation for Gentoo --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1527a0d..e481053 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,7 @@ To add the script to the default runlevels, run the following as root: An init file is available for gentoo users: mbpfan.init.gentoo To install, run as root: + chmod +x mbpfan.init.gentoo cp mbpfan.init.gentoo /etc/init.d/mbpfan To automatically run mbpfan at boot, run as root: