git.infertux.com bin-scripts / master thinkpad-fan
master

Tree @master (Download .tar.gz)

thinkpad-fan @masterraw · history · blame

1
2
3
4
5
6
7
#/bin/bash -e

case $1 in
  [0-7]) echo level $1 | sudo tee /proc/acpi/ibm/fan ;;
  auto|disengaged|full-speed) echo level $1 | sudo tee /proc/acpi/ibm/fan ;;
  *) cat /proc/acpi/ibm/fan ;;
esac