summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/xymon-hddtemp.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-03-13 21:37:47 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-03-13 21:37:47 (GMT)
commitb482316c7454c1b7ee060537339b84043f26ed5a (patch)
tree14f20c22c019f2bcc6f37ad29398d9c07d5f5865 /abs/core/xymon/xymon-hddtemp.sh
parent9b1a9f4424c6aebcf775234de19691c6bd46eeca (diff)
downloadlinhes_pkgbuild-b482316c7454c1b7ee060537339b84043f26ed5a.zip
linhes_pkgbuild-b482316c7454c1b7ee060537339b84043f26ed5a.tar.gz
linhes_pkgbuild-b482316c7454c1b7ee060537339b84043f26ed5a.tar.bz2
xymon: fix mythtv binding for xymonclient
Diffstat (limited to 'abs/core/xymon/xymon-hddtemp.sh')
-rwxr-xr-xabs/core/xymon/xymon-hddtemp.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/abs/core/xymon/xymon-hddtemp.sh b/abs/core/xymon/xymon-hddtemp.sh
index 6961919..6c0f109 100755
--- a/abs/core/xymon/xymon-hddtemp.sh
+++ b/abs/core/xymon/xymon-hddtemp.sh
@@ -6,7 +6,7 @@ ls /dev/disk/by-id/* | grep -ve '-part' -ve '/wwn-' |
while read DISK
do
DISKDEV=`ls -l $DISK | awk -F/ '{print $NF}'`
- DISKNAME=`echo $DISK | awk -F/ '{print $5}'`
+ DISKNAME=`echo $DISK | awk -F/ '{print $5}' | tr ":" "_"`
#check if disk is removable
RM=0
@@ -23,10 +23,10 @@ do
then
TEMP="- No Temp Sensor Found"
COLOR="4&clear"
- elif test $hddtemp -gt 50
+ elif test $hddtemp -gt 55
then
COLOR="1&red"
- elif test $hddtemp -ge 45
+ elif test $hddtemp -ge 50
then
COLOR="2&yellow"
else