raspiblitz/home.admin/97addMobileWalletShango.sh

47 lines
1.3 KiB
Bash
Raw Normal View History

2018-08-23 03:08:09 +02:00
#!/bin/bash
2019-02-02 23:49:04 +01:00
# load raspiblitz config data
source /home/admin/raspiblitz.info
2018-12-21 01:59:26 +01:00
source /mnt/hdd/raspiblitz.conf
2018-08-24 20:35:55 +02:00
2018-08-23 03:08:09 +02:00
clear
# get local IP
2018-08-23 03:09:58 +02:00
myip=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
2018-08-23 03:08:09 +02:00
2018-12-21 01:59:26 +01:00
# replace dyndomain if available
if [ ${#dynDomain} -gt 0 ]; then
myip="${dynDomain}"
fi
2018-08-23 03:08:09 +02:00
clear
echo "******************************"
echo "Connect Shango Mobile Wallet"
echo "******************************"
echo ""
2018-08-23 03:11:27 +02:00
echo "*** STEP 1 ***"
2018-12-21 02:36:24 +01:00
if [ ${#dynDomain} -eq 0 ]; then
2018-12-21 01:59:26 +01:00
echo "Once you have the app is running make sure you are on the same local network (WLAN same as LAN)."
fi
2018-12-21 02:41:59 +01:00
echo "On Setup Step 'Choose LND Server Type' connect to 'DIY SELF HOSTED'"
echo "(Or in the App go to --> 'Settings' > 'Connect to your LND Server')"
2018-08-29 18:21:12 +02:00
echo "There you see three 3 form fields to fill out. Skip those and go right to the buttons below."
2018-08-23 03:51:54 +02:00
echo ""
echo "Click on the 'Scan QR' button and PRESS ENTER"
2018-08-23 03:08:09 +02:00
read key
2018-08-23 03:08:09 +02:00
clear
2018-08-23 03:11:27 +02:00
echo "*** STEP 2 : SCAN MACAROON (make whole QR code fill camera) ***"
echo -e "${myip}:10009,\n$(xxd -p -c2000 ./.lnd/data/chain/${network}/${chain}net/admin.macaroon)," > qr.txt && cat ./.lnd/tls.cert >>qr.txt
./XXdisplayQR.sh
2018-08-23 03:08:09 +02:00
clear
echo
2018-08-23 03:08:09 +02:00
echo "Now press 'Connect' within the Shango Wallet."
echo "If its not working - check issues on GitHub:"
echo
2018-08-23 03:08:09 +02:00
echo "https://github.com/neogeno/shango-lightning-wallet/issues"
echo ""