Browse Source

RTL Unlock infos

#146
rootzoll 6 years ago
parent
commit
fc976f6f67
  1. 13
      home.admin/00mainMenu.sh
  2. 8
      home.admin/AAunlockLND.sh
  3. 2
      home.admin/BBcloseAllChannels.sh
  4. 2
      home.admin/_bootstrap.sh

13
home.admin/00mainMenu.sh

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

8
home.admin/AAunlockLND.sh

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

2
home.admin/BBcloseAllChannels.sh

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

2
home.admin/_bootstrap.sh

@ -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…
Cancel
Save