Update temp.inc.sh
This commit is contained in:
@@ -273,12 +273,13 @@ CHECKTEMPSENSOR(){
|
|||||||
echo -en "${lclr}${lmd}${spct}${temp_f_disp}${GAUGESH}"
|
echo -en "${lclr}${lmd}${spct}${temp_f_disp}${GAUGESH}"
|
||||||
[ "${average}" != "" ] && echo -en " /${spca}${averagedisp}${GAUGESH}"
|
[ "${average}" != "" ] && echo -en " /${spca}${averagedisp}${GAUGESH}"
|
||||||
|
|
||||||
tmp="${spct}${temp_f_disp}${GAUGESH}"
|
if [[ "${1}" != *"FAN"* ]]
|
||||||
c=0; spc=''; spc1=`expr 12 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
tmp="${spct}${temp_f_disp}${GAUGESH}"
|
||||||
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
|
c=0; spc=''; spc1=`expr 12 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
||||||
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
|
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
|
||||||
echo -e "${idsCL[Default]}${spc}[${spcw}${idsCL[Yellow]}${temp_warn_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]"
|
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
|
||||||
|
echo -e "${idsCL[Default]}${spc}[${spcw}${idsCL[Yellow]}${temp_warn_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Yellow]}Sensor Offline${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]}Sensor Offline${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user