mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 12:06:36 +02:00
adding lcd info
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
@@ -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 "
|
||||||
|
Reference in New Issue
Block a user