Browse Source

#474 add hardware test to debug and main menu

master
Christian Rotzoll 6 years ago
parent
commit
0a15c876a7
  1. 5
      home.admin/00mainMenu.sh
  2. 1
      home.admin/05hardwareTest.sh
  3. 19
      home.admin/XXdebugLogs.sh

5
home.admin/00mainMenu.sh

@ -373,6 +373,7 @@ else
fi
# final Options
OPTIONS+=(HARDWARE "Run Hardwaretest")
OPTIONS+=(OFF "PowerOff RaspiBlitz")
OPTIONS+=(X "Console / Terminal")
@ -517,6 +518,10 @@ case $CHOICE in
./00mainMenu.sh
fi
;;
HARDWARE)
sudo ./05hardwareTest.sh
./00mainMenu.sh
;;
PASSWORD)
sudo /home/admin/config.scripts/blitz.setpassword.sh
noreboot=$?

1
home.admin/05hardwareTest.sh

@ -9,6 +9,7 @@
# INFOFILE - state data from bootstrap
source /home/admin/raspiblitz.info
clear
echo "*** Hardware Test Report ***"
echo ""

19
home.admin/XXdebugLogs.sh

@ -75,8 +75,25 @@ fi
echo ""
echo "*** HARDWARE TEST RESULTS ***"
echo "UndervoltageReports in Logs: ${undervoltageReports}"
showImproveInfo=0
if [ ${#undervoltageReports} -gt 0 ]; then
echo "UndervoltageReports in Logs: ${undervoltageReports}"
if [ ${undervoltageReports} -gt 0 ]; then
showImproveInfo=1
fi
fi
if [ -f /home/admin/stresstest.report ]; then
sudo cat /home/admin/stresstest.report
source /home/admin/stresstest.report
if [ ${powerWARN} -gt 0 ]; then
showImproveInfo=1
fi
if [ ${tempWARN} -gt 0 ]; then
showImproveInfo=1
fi
fi
if [ ${showImproveInfo} -gt 0 ]; then
echo "IMPORTANT: There are some hardware issues with your setup."
echo "'Run Hardwaretest' in main menu or: sudo /home/admin/05hardwareTest.sh"
fi
echo ""
Loading…
Cancel
Save