mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-27 02:01:53 +01:00
reconnect on copy source (#1601)
This commit is contained in:
parent
ef4fde450f
commit
c0b6df3106
@ -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
|
||||
|
@ -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)" \
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user