mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 11:13:12 +02:00
add reboot info
This commit is contained in:
@@ -172,9 +172,26 @@ do
|
|||||||
#echo "# controlFinalDialog.sh"
|
#echo "# controlFinalDialog.sh"
|
||||||
/home/admin/setup.scripts/controlFinalDialog.sh
|
/home/admin/setup.scripts/controlFinalDialog.sh
|
||||||
# exit for final setup reboot
|
# exit for final setup reboot
|
||||||
exit 0
|
state="reboot"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# exit loop/script in case if system shutting down
|
||||||
|
if [ "${state}" == "reboot" ] || [ "${state}" == "shutdown" ]; then
|
||||||
|
clear
|
||||||
|
echo "***********************************************************"
|
||||||
|
echo "RaspiBlitz going to ${state}"
|
||||||
|
echo "***********************************************************"
|
||||||
|
if [ "${state}" == "reboot" ]; then
|
||||||
|
if [ "${message}" == "finalsetup" ]; then
|
||||||
|
echo "This is the final setup reboot - you will get disconnected."
|
||||||
|
fi
|
||||||
|
echo "SSH again into system with:"
|
||||||
|
echo "ssh admin@${localip}"
|
||||||
|
echo "***********************************************************"
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# INITIAL BLOCKCHAIN SYNC (SUBLOOP)
|
# INITIAL BLOCKCHAIN SYNC (SUBLOOP)
|
||||||
#####################################
|
#####################################
|
||||||
@@ -246,23 +263,6 @@ do
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# exit loop/script in case if system shutting down
|
|
||||||
if [ "${state}" == "reboot" ] || [ "${state}" == "shutdown" ]; then
|
|
||||||
clear
|
|
||||||
echo "***********************************************************"
|
|
||||||
echo "RaspiBlitz going to ${state}"
|
|
||||||
echo "***********************************************************"
|
|
||||||
if [ "${state}" == "reboot" ]; then
|
|
||||||
if [ "${message}" == "finalsetup" ]; then
|
|
||||||
echo "This is the final setup reboot - you will get disconnected."
|
|
||||||
fi
|
|
||||||
echo "SSH again into system with:"
|
|
||||||
echo "ssh admin@${localip}"
|
|
||||||
echo "***********************************************************"
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "# menu loop received exit code ${exitMenuLoop} --> exit to terminal"
|
echo "# menu loop received exit code ${exitMenuLoop} --> exit to terminal"
|
||||||
|
Reference in New Issue
Block a user