Update temp.inc.sh
This commit is contained in:
@@ -413,12 +413,13 @@ CHECKTEMP_SERVICE(){
|
||||
s_count=0; completed=false; scanstart=$(date +%s)
|
||||
until [ "${completed}" == "true" ]; do
|
||||
for sensor in ${PW_TMPFOLDER}/ztemprun.*.done; do
|
||||
if [ "$(grep -oP '(?<=ztemprun.).*?(?=.done)' <<< "${sensor}")" != "*" ]; then
|
||||
tsensor=$(grep -oP '(?<=ztemprun.).*?(?=.done)' <<< "${sensor}")
|
||||
if [ "${tsensor}" != "*" ]; then
|
||||
rm -f ${sensor}
|
||||
((s_count++))
|
||||
echo -en "HERE: ${sensor} = "
|
||||
[ -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}* ] && echo yes || echo no
|
||||
[ -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}* ] && rm -f ${PW_TMPFOLDER}/.lastfancheck/${sensor}*
|
||||
echo -en "HERE: ${tsensor} = "
|
||||
[ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}* ] && echo yes || echo no
|
||||
[ -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}* ] && rm -f ${PW_TMPFOLDER}/.lastfancheck/${tsensor}*
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user