connect shango wallet

This commit is contained in:
rootzoll
2018-08-23 03:08:09 +02:00
parent 0a8c971437
commit 678c971452
2 changed files with 50 additions and 14 deletions

View File

@@ -1,14 +0,0 @@
#!/bin/bash
# location of lnd.conf
lnd_config=/home/bitcoin/.lnd/lnd.conf
# add qrcode-encoder to pass info
sudo apt-get install qrencode -y
cd /home/admin/.lnd
# save LAN IP
myip="ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'"
# display qr code
echo -e "${myip},\n$(xxd -p -c2000 admin.macaroon)," > qr.txt && cat tls.cert >>qr.txt && qrencode -t ANSIUTF8 < qr.txt