mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
parent
98642ff382
commit
f45403c908
1 changed files with 19 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue