Merge pull request #1 from Olathe/master

Now handles script renames and has less misspellings
This commit is contained in:
Sepero 2013-02-09 07:15:55 -08:00
commit a48a876c7f
2 changed files with 6 additions and 6 deletions

View File

@ -3,10 +3,10 @@ temp-throttle
A shell script for throttling system CPU frequency based on a desired maximum temperature.
Set a desired maximum temperature for your system using this script. If the maximum tempurature is exeeded, the script will limit the speed of your CPU cores incrementally until the system is again below your desired maximum temperature. (If your system remains above maximum temperature after completely limiting your CPU cores, it will simply stay limited until temperatures drop below the maximum desired.)
Set a desired maximum temperature for your system using this script. If the maximum tempurature is exceeded, the script will limit the speed of your CPU cores incrementally until the system is again below your desired maximum temperature. (If your system remains above maximum temperature after completely limiting your CPU cores, it will simply stay limited until temperatures drop below the maximum desired.)
This script must be run with root priviledges. Only celcius temperatures are supported. This example will limit system temperatures to 80 Celcius:
This script must be run with root privileges. Only Celsius temperatures are supported. This example will limit system temperatures to 80 Celsius:
sudo ./temp_throttle 80

View File

@ -1,12 +1,12 @@
#!/bin/bash
# temp_throttle.sh max_temp
# USE CELCIUS TEMPERATURES.
# USE CELSIUS TEMPERATURES.
if [ $# -ne 1 ]; then
# If tempurature wasn't given, then print a message and exit.
echo "Please supply a maximum desired temperature in Celcius." 1>&2
echo "For example: temp_throttle.sh 60" 1>&2
# If temperature wasn't given, then print a message and exit.
echo "Please supply a maximum desired temperature in Celsius." 1>&2
echo "For example: ${0} 60" 1>&2
exit 2
else
#Set the first argument as the maximum desired temperature.