Difference between revisions of "Code/fan-enable-basic"
(moved from ACPI fan control script) |
(No difference)
|
Latest revision as of 23:15, 26 July 2006
- !/bin/sh
MAXTEMP=50
while [ 1 ]; do
fan=no
for temp in `sed s/temperatures:// < /proc/acpi/ibm/thermal` do test $temp -gt $MAXTEMP && fan=yes done
command='disable' test "$fan" = "yes" && command='enable' echo $command > /proc/acpi/ibm/fan
sleep 20
done