diff --git a/config.example.sh b/config.example.sh index d408fb1..ce8a930 100644 --- a/config.example.sh +++ b/config.example.sh @@ -1,8 +1,11 @@ -!/bin/bash +#!/bin/bash # degrees in C THERMAL_ALERT=75 +# see: /sys/class/thermal/thermal_zone* +THERMAL_ZONE=0 + STORAGE_MONITOR=("/") # must declare associated array explicitly diff --git a/thermal.sh b/thermal.sh index 6789af7..263cfb0 100755 --- a/thermal.sh +++ b/thermal.sh @@ -1,10 +1,14 @@ #!/bin/bash +LOCATION=`dirname "$0"` + +source "${LOCATION}/config.sh" + # this is currently specific to raspberry-pi # since that is the only kind of physical server I have # TODO make this work with all temp in class/thermal -name=$(