use $lightning option for INFO

This commit is contained in:
openoms 2021-08-10 11:41:02 +01:00
parent fb4e7f7bdd
commit 5e925e2c4b
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65
2 changed files with 31 additions and 29 deletions

View File

@ -199,7 +199,7 @@ case $CHOICE in
do
# show the same info as on LCD screen
/home/admin/00infoBlitz.sh
/home/admin/00infoBlitz.sh ${lightning} ${chain}net
# wait 6 seconds for user exiting loop
echo ""
@ -217,7 +217,7 @@ case $CHOICE in
done
else
/home/admin/00raspiblitz.sh
/home/admin/00raspiblitz.sh ${lightning} ${chain}net
exit 0
fi
;;

View File

@ -121,33 +121,35 @@ CHOICE=$(dialog --clear \
case $CHOICE in
INFO)
# #TODO
# echo "Gathering Information (please wait) ..."
# walletLocked=$(lncli getinfo 2>&1 | grep -c "Wallet is encrypted")
# if [ ${walletLocked} -eq 0 ]; then
# while :
# do
# # show the same info as on LCD screen
# /home/admin/00infoBlitz.sh
# # wait 6 seconds for user exiting loop
# echo ""
# echo -en "Screen is updating in a loop .... press 'x' now to get back to menu."
# read -n 1 -t 6 keyPressed
# echo -en "\rGathering information to update info ... please wait. \n"
# # 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
# fi
/home/admin/00infoBlitz.sh $CHAIN
;;
echo "Gathering Information (please wait) ..."
walletLocked=$(lncli getinfo 2>&1 | grep -c "Wallet is encrypted")
if [ ${walletLocked} -eq 0 ]; then
while :
do
# show the same info as on LCD screen
/home/admin/00infoBlitz.sh ${lightning} ${chain}net
# wait 6 seconds for user exiting loop
echo ""
echo -en "Screen is updating in a loop .... press 'x' now to get back to menu."
read -n 1 -t 6 keyPressed
echo -en "\rGathering information to update info ... please wait. \n"
# 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 ${lightning} ${chain}net
exit 0
fi
;;
RTL)
/home/admin/config.scripts/bonus.rtl.sh menu lnd $CHAIN
;;