Merge branch 'master' of git://github.com/ahyangyi/Fan-Control-Daemon into ahyangyi-master
This commit is contained in:
commit
43acd4665f
3 changed files with 3 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -56,7 +56,7 @@ clean:
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
make install
|
make install
|
||||||
sudo /usr/sbin/mbpfan -f -v -t
|
/usr/sbin/mbpfan -f -v -t
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm /usr/sbin/mbpfan
|
rm /usr/sbin/mbpfan
|
||||||
|
|
|
@ -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
|
An init file is available for gentoo users: mbpfan.init.gentoo
|
||||||
To install, run as root:
|
To install, run as root:
|
||||||
|
|
||||||
|
chmod +x mbpfan.init.gentoo
|
||||||
cp mbpfan.init.gentoo /etc/init.d/mbpfan
|
cp mbpfan.init.gentoo /etc/init.d/mbpfan
|
||||||
|
|
||||||
To automatically run mbpfan at boot, run as root:
|
To automatically run mbpfan at boot, run as root:
|
||||||
|
|
|
@ -517,8 +517,6 @@ void mbpfan()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(polling_interval);
|
|
||||||
|
|
||||||
step_up = (float)( max_fan_speed - min_fan_speed ) /
|
step_up = (float)( max_fan_speed - min_fan_speed ) /
|
||||||
(float)( ( max_temp - high_temp ) * ( max_temp - high_temp + 1 ) / 2 );
|
(float)( ( max_temp - high_temp ) * ( max_temp - high_temp + 1 ) / 2 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue