mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
RTL Unlock infos
This commit is contained in:
parent
de3d471ca1
commit
fc976f6f67
4 changed files with 18 additions and 7 deletions
|
@ -173,9 +173,16 @@ else
|
|||
locked=$(sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep -c unlock)
|
||||
if [ ${locked} -gt 0 ]; then
|
||||
|
||||
# LOCK SCREEN
|
||||
MENU="!!! YOUR WALLET IS LOCKED !!!"
|
||||
OPTIONS+=(U "Unlock your Lightning Wallet with 'lncli unlock'")
|
||||
if [ "${rtlWebinterface}" = "on" ]; then
|
||||
# WEBINTERFACE INFO LOCK SCREEN
|
||||
TITLE="Webinterface: http://${localip}:3000"
|
||||
MENU="IMPORTANT: Please unlock thru the RTL Webinterface."
|
||||
OPTIONS+=(U "ONLY BACKUP Unlock with 'lncli unlock'")
|
||||
else
|
||||
# NORMAL LOCK SCREEN
|
||||
MENU="!!! YOUR WALLET IS LOCKED !!!"
|
||||
OPTIONS+=(U "Unlock your Lightning Wallet with 'lncli unlock'")
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# load network
|
||||
network=`cat .network`
|
||||
# load raspiblitz config data (with backup from old config)
|
||||
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
||||
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
|
||||
if [ ${#chain} -eq 0 ]; then
|
||||
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "****************************************************************************"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
||||
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
|
||||
if [ ${#chain} -eq 0 ]; then
|
||||
chain=$(${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')
|
||||
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
|
||||
fi
|
||||
|
||||
# precheck: AutoPilot
|
||||
|
|
|
@ -327,7 +327,7 @@ fi
|
|||
|
||||
# RideTheLightning RTL
|
||||
# rtlWebinterface=off|on
|
||||
if [ ${#runBehindTor} -eq 0 ]; then
|
||||
if [ ${#rtlWebinterface} -eq 0 ]; then
|
||||
echo "rtlWebinterface=off" >> $configFile
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue