Wymagany modul w kernelu: Device Drivers —> [*] X86 Platform Specific Device Drivers —> [M] ThinkPad ACPI Laptop Extras
#! /bin/bash tmp=`cat /proc/acpi/ibm/thermal |cut -c 15-16` level=`cat /proc/acpi/ibm/fan|grep level:| cut -c 9-` rpm=`cat /proc/acpi/ibm/fan|grep speed:| cut -c 9-` echo $tmp echo $level echo $rpm if [ $tmp -lt 60 ] then echo "mniejsza od 60" echo level auto > /proc/acpi/ibm/fan else if [ $tmp -ge 80 ] then echo "wwiekszy rowny 80 full speed" echo level full-speed > /proc/acpi/ibm/fan else if [ $tmp -ge 70 ] then echo "wiekszy rowny 70 full-speed" echo level full-speed > /proc/acpi/ibm/fan else if [ $tmp -ge 60 ] then echo "wiekszy rowmy 60 level 7" echo level 7 > /proc/acpi/ibm/fan fi fi fi fi