|
|
@ -12,7 +12,7 @@ |
|
|
|
|
|
|
|
echo "" |
|
|
|
echo "*****************************************" |
|
|
|
echo "* RASPIBLITZ SD CARD IMAGE SETUP v1.1 *" |
|
|
|
echo "* RASPIBLITZ SD CARD IMAGE SETUP v1.2 *" |
|
|
|
echo "*****************************************" |
|
|
|
echo "" |
|
|
|
|
|
|
@ -415,9 +415,16 @@ echo "" |
|
|
|
echo "*** LND ***" |
|
|
|
|
|
|
|
## based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_40_lnd.md#lightning-lnd |
|
|
|
lndVersion="0.5.2-beta" |
|
|
|
lndSHA256="9adf9f3d0b8a62942f68d75ffe043f9255319209f751dee4eac82375ec0a86cd" |
|
|
|
olaoluwaPGP="BD599672C804AF2770869A048B80CD2BB8BD8132" |
|
|
|
lndVersion="0.6-beta-rc3" |
|
|
|
lndSHA256="811a5fde2f804caaa7334d30d31666798420f1a353bb91ae84d897c2fd2432a0" |
|
|
|
|
|
|
|
# olaoluwa |
|
|
|
#PGPpkeys = "https://keybase.io/bitconner/pgp_keys.asc" |
|
|
|
#PGPcheck = "BD599672C804AF2770869A048B80CD2BB8BD8132" |
|
|
|
|
|
|
|
# bitconner |
|
|
|
PGPpkeys = "https://keybase.io/bitconner/pgp_keys.asc" |
|
|
|
PGPcheck = "9C8D61868A7C492003B2744EE7D737B67FA592C7" |
|
|
|
|
|
|
|
# get LND resources |
|
|
|
cd /home/admin/download |
|
|
@ -425,7 +432,7 @@ binaryName="lnd-linux-armv7-v${lndVersion}.tar.gz" |
|
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/${binaryName} |
|
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt |
|
|
|
sudo -u admin wget https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt.sig |
|
|
|
sudo -u admin wget https://keybase.io/roasbeef/pgp_keys.asc |
|
|
|
sudo -u admin wget -O pgp_keys.asc ${PGPpkeys} |
|
|
|
|
|
|
|
# check binary is was not manipulated (checksum test) |
|
|
|
binaryChecksum=$(sha256sum ${binaryName} | cut -d " " -f1) |
|
|
@ -436,11 +443,11 @@ fi |
|
|
|
|
|
|
|
# check gpg finger print |
|
|
|
gpg ./pgp_keys.asc |
|
|
|
fingerprint=$(gpg ./pgp_keys.asc 2>/dev/null | grep "${olaoluwaPGP}" -c) |
|
|
|
fingerprint=$(gpg ./pgp_keys.asc 2>/dev/null | grep "${PGPcheck}" -c) |
|
|
|
if [ ${fingerprint} -lt 1 ]; then |
|
|
|
echo "" |
|
|
|
echo "!!! BUILD WARNING --> Bitcoin PGP author not as expected" |
|
|
|
echo "Should contain olaoluwaPGP: ${olaoluwaPGP}" |
|
|
|
echo "!!! BUILD WARNING --> LND PGP author not as expected" |
|
|
|
echo "Should contain PGP: ${PGPcheck}" |
|
|
|
echo "PRESS ENTER to TAKE THE RISK if you think all is OK" |
|
|
|
read key |
|
|
|
fi |
|
|
|