critical error info

This commit is contained in:
rootzoll
2021-05-06 02:23:02 +02:00
parent bab6b0a307
commit 452d6fafb8
2 changed files with 20 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ do
echo "# DURING SETUP: Handle System State (${state})"
# when no HDD on Vagrant - just print info & exit (admin info)
# when no HDD on Vagrant - just print info & exit (admin info & exit)
if [ "${state}" == "noHDD" ] && [ ${vagrant} -gt 0 ]; then
echo "***********************************************************"
echo "VAGRANT INFO"
@@ -106,6 +106,19 @@ do
echo "space on your laptop you can store the VDI file on an external drive."
echo "***********************************************************"
exit 1
# for all critical errors (admin info & exit)
if [ "${state}" == "errorHDD" ]; then
echo "***********************************************************"
echo "SETUP ERROR - please report to development team"
echo "***********************************************************"
echo "state(${state}) message(${message})"
if [ "${state}" == "errorHDD" ]; then
# print some debug detail info on HDD/SSD error
sudo /home/admin/config.scripts/blitz.datadrive.sh status
fi
echo "command to shutdown --> off"
exit 1
else
# every other state just push as event to SSH frontend

View File

@@ -35,6 +35,12 @@ Starting RaspiBlitz
Please wait ...
" 6 24
elif [ "${eventID}" == "reboot" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
Shutting down for reboot.
" 5 30
elif [ "${eventID}" == "noHDD" ]; then
# contentWords[0] --> size string (for example '1TB')