RTL Unlock infos

This commit is contained in:
rootzoll 2018-12-04 00:51:17 +01:00
parent de3d471ca1
commit fc976f6f67
4 changed files with 18 additions and 7 deletions

View file

@ -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

View file

@ -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 "****************************************************************************"

View file

@ -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

View file

@ -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