Detect bitcoind for rockpro64

This commit is contained in:
Taylor Helsper 2019-12-06 20:41:55 -06:00
parent 90a1b1d5f0
commit 05cfeb78c3
2 changed files with 16 additions and 11 deletions

View File

@ -72,17 +72,18 @@ usermod -aG docker root
# Upgrade BTC
echo "Upgrading BTC..."
set +e
BTC_VERSION="0.19.0.1"
ARCH="arm-linux-gnueabihf"
uname -a | grep aarch64
if [ $? = 0 ]; then
ARCH="UNKNOWN"
if [ $IS_RASPI = 1]; then
ARCH="arm-linux-gnueabihf"
elif [ $IS_ROCK64 = 1 ] || [ $IS_ROCKPRO64 = 1 ]; then
ARCH="aarch64-linux-gnu"
fi
if [ $IS_X86 = 1 ]; then
elif [ $IS_X86 = 1 ]; then
ARCH="x86_64-linux-gnu"
else
echo "Unknown Bitcoin Version"
exit 1
fi
set -e
BTC_UPGRADE_URL=https://bitcoincore.org/bin/bitcoin-core-$BTC_VERSION/bitcoin-$BTC_VERSION-$ARCH.tar.gz
BTC_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.btc_url
BTC_UPGRADE_SHA256SUM_URL=https://bitcoincore.org/bin/bitcoin-core-$BTC_VERSION/SHA256SUMS.asc

View File

@ -187,12 +187,16 @@ rm -rf /etc/update-motd.d/*
# Install Bitcoin
BTC_VERSION="0.19.0.1"
ARCH="arm-linux-gnueabihf"
if [ $IS_ROCK64 = 1 ]; then
ARCH="UNKNOWN"
if [ $IS_RASPI = 1]; then
ARCH="arm-linux-gnueabihf"
elif [ $IS_ROCK64 = 1 ] || [ $IS_ROCKPRO64 = 1 ]; then
ARCH="aarch64-linux-gnu"
fi
if [ $IS_X86 = 1 ]; then
elif [ $IS_X86 = 1 ]; then
ARCH="x86_64-linux-gnu"
else
echo "Unknown Bitcoin Version"
exit 1
fi
BTC_UPGRADE_URL=https://bitcoincore.org/bin/bitcoin-core-$BTC_VERSION/bitcoin-$BTC_VERSION-$ARCH.tar.gz
BTC_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.btc_url