From b7d16c6482e2bfa4d3fe53033b3ff96f8e002467 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Fri, 16 Feb 2024 13:58:27 -0600 Subject: [PATCH] Update docker-start.sh --- docker-start.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker-start.sh b/docker-start.sh index 507ae1a..253b3b7 100644 --- a/docker-start.sh +++ b/docker-start.sh @@ -28,6 +28,16 @@ full_path="${base_path}/${highest_version}" #Create Expected Config File touch "${full_path}/Miner_config.cfg" +# Detect ARM architecture +if [ "$(uname -m)" = "armv7l" ] || [ "$(uname -m)" = "aarch64" ]; then + DUCO_RASPI_CPU_IOT="y" +else + DUCO_RASPI_CPU_IOT="n" +fi + +# Export for Dockerfile to pick up +export DUCO_RASPI_CPU_IOT + echo '[PC Miner]' > "${full_path}/Miner_config.cfg" echo "username = ${DUCO_USERNAME}" >> "${full_path}/Miner_config.cfg" echo "mining_key = $(echo -n ${DUCO_MINING_KEY} | base64)" >> "${full_path}/Miner_config.cfg"