mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 20:24:39 +02:00
just one time loop info & debug info
This commit is contained in:
@@ -401,12 +401,10 @@ if [ ${isMounted} -eq 0 ]; then
|
||||
# until SSH or WEBUI setup data is available
|
||||
#############################################
|
||||
|
||||
echo "## WAIT LOOP: USER SETUP/UPDATE/MIGRATION" >> $logFile
|
||||
until [ "${state}" == "waitprovision" ]
|
||||
do
|
||||
|
||||
# TODO: DETECT WHEN USER SETUP IS DONE
|
||||
echo "TODO: DETECT WHEN USER SETUP IS DONE hddError(${hddError}) hddCandidate(${hddCandidate})" >> $logFile
|
||||
|
||||
# get latest network info & update raspiblitz.info (in case network changes)
|
||||
source <(/home/admin/config.scripts/internet.sh status)
|
||||
sed -i "s/^localip=.*/localip='${localip}'/g" ${infoFile}
|
||||
@@ -439,6 +437,7 @@ if [ ${isMounted} -eq 0 ]; then
|
||||
|
||||
# refresh data from info file
|
||||
source ${infoFile}
|
||||
echo "# PROVISION PROCESS with setupPhase(${setupPhase})"
|
||||
|
||||
# temp mount the HDD
|
||||
echo "Temp mounting data drive ($hddCandidate)" >> $logFile
|
||||
@@ -458,7 +457,7 @@ if [ ${isMounted} -eq 0 ]; then
|
||||
# kick-off provision process
|
||||
sed -i "s/^state=.*/state=provision/g" ${infoFile}
|
||||
sed -i "s/^message=.*/message='Starting Provision'/g" ${infoFile}
|
||||
|
||||
|
||||
# if setup - run provision setup first
|
||||
if [ "${setupPhase}" == "setup" ]; then
|
||||
echo "Calling _bootstrap.setup.sh for basic setup tasks .." >> $logFile
|
||||
|
Reference in New Issue
Block a user