harmonize ready state

This commit is contained in:
rootzoll
2021-07-02 23:11:50 +02:00
parent 26a63295d6
commit 246ffe46bd
3 changed files with 4 additions and 12 deletions

View File

@@ -583,12 +583,12 @@ if [ ${isMounted} -eq 0 ]; then
sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
else
echo "# Skip WAIT LOOP boot directly into main menu ..." >> $logFile
sed -i "s/^state=.*/state=finalready/g" ${infoFile}
sed -i "s/^state=.*/state=ready/g" ${infoFile}
sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
fi
source ${infoFile}
until [ "${state}" == "finalready" ]
until [ "${state}" == "ready" ]
do
# TODO: DETECT WHEN USER SETUP IS DONE

View File

@@ -40,7 +40,7 @@ if [ "${syncProgressFull}" != "" ] && [ "${network}" == "bitcoin" ] && [ ${syncP
if [ "${CHOICESUB}" == "COPY" ]; then
/home/admin/config.scripts/blitz.copychain.sh target
fi
fi
############# SCB activation
@@ -122,4 +122,4 @@ fi
echo "Starting ... (please wait)"
# signal to backend that all is good and it can continue
sudo sed -i "s/^state=.*/state='finalready'/g" /home/admin/raspiblitz.info
sudo sed -i "s/^state=.*/state='ready'/g" /home/admin/raspiblitz.info

View File

@@ -176,14 +176,6 @@ ssh admin@${localip}
Use your Password A
" 7 41
elif [ "${eventID}" == "finalready" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
Setup-Done - Please Wait
ssh admin@${localip}
Use your Password A
" 7 41
elif [ "${eventID}" == "shutdown" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox "