let pi user read stresstest report

This commit is contained in:
Christian Rotzoll 2019-04-10 16:07:31 +01:00
parent ce612177b0
commit 3ac6911849
2 changed files with 2 additions and 0 deletions

View File

@ -295,6 +295,7 @@ ${color_yellow}${ln_publicColor}${ln_external}${color_red}
"load average:${load##up*, }" "${temp}" \
"${hdd}" "${sync_percentage}"
source /home/admin/stresstest.report 2>/dev/null
if [ ${#undervoltageReports} -gt 0 ] && [ "${undervoltageReports}" != "0" ]; then
echo "${undervoltageReports} undervoltage reports found - run 'Hardware Test' in main menu"
elif [ ${#powerFAIL} -gt 0 ] && [ ${powerFAIL} -gt 0 ]; then

View File

@ -96,4 +96,5 @@ else
echo "tempFAIL=${tempFAIL}" >>${filenameForReport}
echo "tempWARN=${tempWARN}" >>${filenameForReport}
echo "tempMAX='${tempMAX} centiGrad'" >>${filenameForReport}
sudo chmod 744 ${filenameForReport}
fi