adding lcd info

This commit is contained in:
rootzoll
2021-06-19 03:13:01 +02:00
parent 78fe559269
commit 1bfa2c2e3f
4 changed files with 21 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ while :
# get config info if already available (with state value) # get config info if already available (with state value)
source ${infoFile} source ${infoFile}
if [ "${setupPhase}" != "done" ]; then if [ "${setupPhase}" != "done" ] && [ "${state}" != "copytarget" ]; then
# show status info during boot & setup & repair on LCD # show status info during boot & setup & repair on LCD
/home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" lcd /home/admin/setup.scripts/eventInfoWait.sh "${state}" "${message}" lcd

View File

@@ -57,7 +57,7 @@ do
# https://github.com/rootzoll/raspiblitz/issues/160 # 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})" echo "skipping background loop (${counter}) - state(${state})"
sleep 1 sleep 1
continue continue

View File

@@ -27,8 +27,8 @@ case $CHOICE in
esac esac
# setting copy state # setting copy state
sed -i "s/^state=.*/state=copysource/g" /home/admin/raspiblitz.info sed -i "s/^state=.*/state=copytarget/g" /home/admin/raspiblitz.info
sed -i "s/^message=.*/message='LAN-COPY Blockchain'/g" /home/admin/raspiblitz.info sed -i "s/^message=.*/message='Receiving Blockchain over LAN'/g" /home/admin/raspiblitz.info
echo "stopping services ..." echo "stopping services ..."
sudo systemctl stop lnd sudo systemctl stop lnd
@@ -207,7 +207,7 @@ if [ ${quickCheckOK} -eq 0 ]; then
response=$? response=$?
echo "response(${response})" echo "response(${response})"
if [ "${response}" == "0" ]; then if [ "${response}" == "0" ]; then
/home/admin/50copyHDD.sh /home/admin/config.scripts/blitz.copychain.sh
exit 0 exit 0
fi fi

View File

@@ -88,6 +88,22 @@ ssh admin@${localip}
Use your Password A Use your Password A
" 7 41 " 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 elif [ "${eventID}" == "inconsistentsystem" ]; then
dialog --backtitle "${backtitle}" --cr-wrap --infobox " dialog --backtitle "${backtitle}" --cr-wrap --infobox "