mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
use $lightning option for INFO
This commit is contained in:
@@ -199,7 +199,7 @@ case $CHOICE in
|
|||||||
do
|
do
|
||||||
|
|
||||||
# show the same info as on LCD screen
|
# 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
|
# wait 6 seconds for user exiting loop
|
||||||
echo ""
|
echo ""
|
||||||
@@ -217,7 +217,7 @@ case $CHOICE in
|
|||||||
done
|
done
|
||||||
|
|
||||||
else
|
else
|
||||||
/home/admin/00raspiblitz.sh
|
/home/admin/00raspiblitz.sh ${lightning} ${chain}net
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@@ -121,33 +121,35 @@ CHOICE=$(dialog --clear \
|
|||||||
|
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
INFO)
|
INFO)
|
||||||
# #TODO
|
echo "Gathering Information (please wait) ..."
|
||||||
# echo "Gathering Information (please wait) ..."
|
walletLocked=$(lncli getinfo 2>&1 | grep -c "Wallet is encrypted")
|
||||||
# walletLocked=$(lncli getinfo 2>&1 | grep -c "Wallet is encrypted")
|
if [ ${walletLocked} -eq 0 ]; then
|
||||||
# if [ ${walletLocked} -eq 0 ]; then
|
while :
|
||||||
# while :
|
do
|
||||||
# do
|
|
||||||
# # show the same info as on LCD screen
|
# 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 ""
|
# wait 6 seconds for user exiting loop
|
||||||
# echo -en "Screen is updating in a loop .... press 'x' now to get back to menu."
|
echo ""
|
||||||
# read -n 1 -t 6 keyPressed
|
echo -en "Screen is updating in a loop .... press 'x' now to get back to menu."
|
||||||
# echo -en "\rGathering information to update info ... please wait. \n"
|
read -n 1 -t 6 keyPressed
|
||||||
# # check if user wants to abort session
|
echo -en "\rGathering information to update info ... please wait. \n"
|
||||||
# if [ "${keyPressed}" = "x" ]; then
|
|
||||||
# echo ""
|
# check if user wants to abort session
|
||||||
# echo "Returning to menu ....."
|
if [ "${keyPressed}" = "x" ]; then
|
||||||
# sleep 4
|
echo ""
|
||||||
# break
|
echo "Returning to menu ....."
|
||||||
# fi
|
sleep 4
|
||||||
# done
|
break
|
||||||
# else
|
fi
|
||||||
# /home/admin/00raspiblitz.sh
|
done
|
||||||
# exit 0
|
|
||||||
# fi
|
else
|
||||||
/home/admin/00infoBlitz.sh $CHAIN
|
/home/admin/00raspiblitz.sh ${lightning} ${chain}net
|
||||||
;;
|
exit 0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
RTL)
|
RTL)
|
||||||
/home/admin/config.scripts/bonus.rtl.sh menu lnd $CHAIN
|
/home/admin/config.scripts/bonus.rtl.sh menu lnd $CHAIN
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user