diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 91a4a296..ae9cf41f 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -135,7 +135,14 @@ CHECKTEMP(){ echo -e "${MSG}${spc}: ${idsCL[White]}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR} "+%m/%d @ %l:%M%p")${idsCL[Default]}" MSG=" Last set" c=0; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done - echo -e "${MSG}${spc}: ${FSC}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set "+%m/%d @ %l:%M%p")${idsST[Reset]}${idsCL[Default]}" + if [ -f ${PW_TMPFOLDER}/.lastfancheck/${cSENSOR}.gl ]; then + FSC="${idsCL[LightGreen]}" + elif [ -f ${PW_TMPFOLDER}/.lastfancheck/${cSENSOR}.set ]; then + FSC="${idsCL[Green]}" + else + FSC="${idsCL[LightYellow]}" + fi + echo -e "${MSG}${spc}: ${FSC}$(date -r ${PW_TMPFOLDER}/.lastfancheck/${SENSOR}.set "+%m/%d @ %l:%M%p")${idsCL[Default]}" fi fi ((t++))