diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-03-13 21:37:47 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-03-13 21:37:47 (GMT) |
commit | b482316c7454c1b7ee060537339b84043f26ed5a (patch) | |
tree | 14f20c22c019f2bcc6f37ad29398d9c07d5f5865 /abs/core/xymon/xymon-hddtemp.sh | |
parent | 9b1a9f4424c6aebcf775234de19691c6bd46eeca (diff) | |
download | linhes_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-x | abs/core/xymon/xymon-hddtemp.sh | 6 |
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 |