mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00
use $lightning option for INFO
This commit is contained in:
parent
fb4e7f7bdd
commit
5e925e2c4b
@ -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
|
||||
;;
|
||||
|
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user