This commit is contained in:
rootzoll 2018-12-05 11:18:18 +01:00
parent cfef77e600
commit d19c598e56
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash
echo "Starting the main menu - please wait ..."
# check data from _bootstrap.sh that was running on device setup
infoFile='/home/admin/raspiblitz.info'
@ -7,7 +8,6 @@ if [ ${bootstrapInfoExists} -eq 1 ]; then
# load the data from the info file
source ${infoFile}
echo "Found raspiblitz.info from bootstrap - processing ..."
# if pre-sync is running - stop it
if [ "${state}" = "presync" ]; then

View file

@ -83,12 +83,12 @@ if [ "${chain}" != "${choice}" ]; then
fi
read key
done
echo "Check for Macaroon .."
sleep 6
echo "Check for Macaroon .. (10sec)"
sleep 10
macaroonExists=$(sudo ls /home/bitcoin/.lnd/data/chain/${network}/${choice}net/admin.macaroon | grep -c 'admin.macaroon')
if [ ${macaroonExists} -eq 0 ]; then
echo "*** PLEASE UNLOCK your wallet with PASSWORD C to create macaroon"
lncli unlock
lncli unlock 2>/dev/null
sleep 6
fi
macaroonExists=$(sudo ls /home/bitcoin/.lnd/data/chain/${network}/${choice}net/admin.macaroon | grep -c 'admin.macaroon')