aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSepero <cowpie2000@hotmail.com>2013-02-09 07:15:55 -0800
committerSepero <cowpie2000@hotmail.com>2013-02-09 07:15:55 -0800
commita48a876c7fcdecb38e10206d327a37cf724c3c83 (patch)
tree3b29ddbd65d35e1e0cdcaac5bcbbf6372a93e6f7
parentf0ceb7a75eb7eaa14f9e277f403aea13641aa976 (diff)
parented392ef15e065182c8b0bfe865f2bd750de2c81c (diff)
Merge pull request #1 from Olathe/master
Now handles script renames and has less misspellings
-rw-r--r--README.md4
-rw-r--r--temp_throttle.sh8
2 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 44d202e..2a510bc 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/temp_throttle.sh b/temp_throttle.sh
index a251765..e282bbf 100644
--- a/temp_throttle.sh
+++ b/temp_throttle.sh
@@ -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.