reconnect on copy source (#1601)

This commit is contained in:
Christian Rotzoll 2020-09-29 12:35:22 +02:00 committed by rootzoll
parent ef4fde450f
commit c0b6df3106
3 changed files with 23 additions and 0 deletions

View File

@ -43,6 +43,16 @@ if [ "${state}" = "recovering" ]; then
exit
fi
if [ "${state}" = "copysource" ]; then
echo "***********************************************************"
echo "INFO: You lost connection during copying the blockchain"
echo "You have the following options:"
echo "a) continue/check progress with command: sourcemode"
echo "b) return to normal mode with command: restart"
echo "***********************************************************"
exit
fi
# signal that after bootstrap recover user dialog is needed
recoveredInfoExists=$(sudo ls /home/admin/raspiblitz.recover.info 2>/dev/null | grep -c '.info')
if [ ${recoveredInfoExists} -gt 0 ]; then

View File

@ -110,6 +110,13 @@ copyHost()
}
# when called with parameter "sourcemode"
if [ "$1" == "sourcemode" ]; then
copyHost
raspiblitz
exit 0
fi
# Basic Options
OPTIONS=(HARDWARE "Run Hardwaretest" \
SOFTWARE "Run Softwaretest (DebugReport)" \

View File

@ -30,6 +30,12 @@ function repair() {
./98repairMenu.sh
}
# command: sourcemode
function sourcemode() {
cd /home/admin
./98repairMenu.sh sourcemode
}
# command: check
function check() {
/home/admin/config.scripts/blitz.configcheck.py