mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 12:10:33 +02:00
adding lcd info
This commit is contained in:
@@ -87,7 +87,7 @@ while :
|
||||
# get config info if already available (with state value)
|
||||
source ${infoFile}
|
||||
|
||||
if [ "${setupPhase}" != "done" ]; then
|
||||
if [ "${setupPhase}" != "done" ] && [ "${state}" != "copytarget" ]; then
|
||||
|
||||
# show status info during boot & setup & repair on LCD
|
||||
/home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" lcd
|
||||
|
@@ -57,7 +57,7 @@ do
|
||||
# https://github.com/rootzoll/raspiblitz/issues/160
|
||||
####################################################
|
||||
|
||||
if [ "${state}" == "" ] || [ "${state}" == "copysource" ]; then
|
||||
if [ "${state}" == "" ] || [ "${state}" == "copysource" ] || [ "${state}" == "copytarget" ]; then
|
||||
echo "skipping background loop (${counter}) - state(${state})"
|
||||
sleep 1
|
||||
continue
|
||||
|
@@ -27,8 +27,8 @@ case $CHOICE in
|
||||
esac
|
||||
|
||||
# setting copy state
|
||||
sed -i "s/^state=.*/state=copysource/g" /home/admin/raspiblitz.info
|
||||
sed -i "s/^message=.*/message='LAN-COPY Blockchain'/g" /home/admin/raspiblitz.info
|
||||
sed -i "s/^state=.*/state=copytarget/g" /home/admin/raspiblitz.info
|
||||
sed -i "s/^message=.*/message='Receiving Blockchain over LAN'/g" /home/admin/raspiblitz.info
|
||||
|
||||
echo "stopping services ..."
|
||||
sudo systemctl stop lnd
|
||||
@@ -207,7 +207,7 @@ if [ ${quickCheckOK} -eq 0 ]; then
|
||||
response=$?
|
||||
echo "response(${response})"
|
||||
if [ "${response}" == "0" ]; then
|
||||
/home/admin/50copyHDD.sh
|
||||
/home/admin/config.scripts/blitz.copychain.sh
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@@ -88,6 +88,22 @@ ssh admin@${localip}
|
||||
Use your Password A
|
||||
" 7 41
|
||||
|
||||
elif [ "${eventID}" == "copysource" ] && [ "${mode}" == "lcd" ]; then
|
||||
|
||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||
Repair-Mode - Providing Blockchain
|
||||
ssh admin@${localip}
|
||||
Use your Password A
|
||||
" 7 41
|
||||
|
||||
elif [ "${eventID}" == "copytarget" ] && [ "${mode}" == "lcd" ]; then
|
||||
|
||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||
Receiving Blockchain over LAN
|
||||
ssh admin@${localip}
|
||||
Use your Password A
|
||||
" 7 41
|
||||
|
||||
elif [ "${eventID}" == "inconsistentsystem" ]; then
|
||||
|
||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||
|
Reference in New Issue
Block a user