Code/fan-enable-basic

From ThinkWiki

Jump to: navigation, search
Diese Seite zu Mister Wong hinzufügen
  1. !/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

Personal tools
Our sponsor
Get Coupons for Lenovo Thinkpad
Get Coupons for Thinkpads
Advertisements
eBay