mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-05 14:03:17 +02:00
critical error info
This commit is contained in:
@@ -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
|
||||
|
@@ -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')
|
||||
|
Reference in New Issue
Block a user