#1569 Refresh Info Screen in Loop (#1572)

This commit is contained in:
Christian Rotzoll 2020-09-21 15:38:00 +02:00 committed by GitHub
parent e5f3e4733e
commit 8be46dd0a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,9 +159,25 @@ case $CHOICE in
echo "Gathering Information (please wait) ..."
walletLocked=$(lncli getinfo 2>&1 | grep -c "Wallet is encrypted")
if [ ${walletLocked} -eq 0 ]; then
/home/admin/00infoBlitz.sh
echo "Screen is not refreshing itself ... press ENTER to continue."
read key
while :
do
# show the same info as on LCD screen
/home/admin/00infoBlitz.sh
# wait 2 seconds for key input
echo "Screen is updating in loop .... keep 'x' pressed to exit to menu."
read -n 1 -t 2 keyPressed
# check if user wants to abort session
if [ "${keyPressed}" = "x" ]; then
echo ""
echo "Returning to menu ....."
sleep 4
break
fi
done
else
/home/admin/00raspiblitz.sh
exit 0