#!/bin/bash temp=`cat /proc/acpi/thermal_zone/THRM/temperature | awk '{print$2}'` stop="56" if [ $temp -le $stop ] then echo "on" >/proc/acpi/fan/FN2/state echo 3 >/proc/acpi/fan/FN2/state fi