mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-03 18:09:03 +02:00
setup menu on raspiblitz loop
This commit is contained in:
@@ -60,10 +60,24 @@ do
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
# if setup is done & state is ready .. jump to main menu
|
# if setup is done & state is ready .. jump to main menu
|
||||||
if [ "${setupPhase}" == "done" ] || [ "${state}" == "ready" ]; then
|
if [ "${setupPhase}" == "done" ] && [ "${state}" == "ready" ]; then
|
||||||
# push user to main menu
|
# push user to main menu
|
||||||
/home/admin/00mainMenu.sh
|
/home/admin/00mainMenu.sh
|
||||||
# use the exit code from main menu als signal if menu loop should exited
|
# use the exit code from main menu as signal if menu loop should exited
|
||||||
|
# 0 = continue loop / everything else = break loop and exit to terminal
|
||||||
|
exitMenuLoop=$?
|
||||||
|
if [ "${exitMenuLoop}" != "0" ]; then break; fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# SETUP SSH MENU
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# if setup is done & state is ready .. jump to main menu
|
||||||
|
if [ "${setupPhase}" != "done" ] && [ "${state}" == "waitsetup" ]; then
|
||||||
|
# push user to main menu
|
||||||
|
/home/admin/setup.scripts/setupDialogControl.sh
|
||||||
|
# use the exit code from setup menu as signal if menu loop should exited
|
||||||
# 0 = continue loop / everything else = break loop and exit to terminal
|
# 0 = continue loop / everything else = break loop and exit to terminal
|
||||||
exitMenuLoop=$?
|
exitMenuLoop=$?
|
||||||
if [ "${exitMenuLoop}" != "0" ]; then break; fi
|
if [ "${exitMenuLoop}" != "0" ]; then break; fi
|
||||||
@@ -137,7 +151,9 @@ do
|
|||||||
|
|
||||||
done
|
done
|
||||||
echo "# mainmenu signaled exit code '${exitMenuLoop}' --> exit to terminal"
|
echo "# mainmenu signaled exit code '${exitMenuLoop}' --> exit to terminal"
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
################# TODO: MOVE PARTS BELOW TO APROPIATE NEW PLACE
|
||||||
|
|
||||||
# check if HDD is from another fullnode OS and offer migration
|
# check if HDD is from another fullnode OS and offer migration
|
||||||
if [ "${hddGotMigrationData}" != "" ] && [ "${hddGotMigrationData}" != "none" ]; then
|
if [ "${hddGotMigrationData}" != "" ] && [ "${hddGotMigrationData}" != "none" ]; then
|
||||||
|
Reference in New Issue
Block a user