rootzoll 6 years ago
parent
commit
d19c598e56
  1. 2
      home.admin/00mainMenu.sh
  2. 6
      home.admin/00settingsMenuServices.sh

2
home.admin/00mainMenu.sh

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

6
home.admin/00settingsMenuServices.sh

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

Loading…
Cancel
Save