Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Change BALENA_DEVICE_TYPE to VARIANT in start-miner.sh #76

Open
shawaj opened this issue Mar 8, 2022 · 0 comments
Open

Change BALENA_DEVICE_TYPE to VARIANT in start-miner.sh #76

shawaj opened this issue Mar 8, 2022 · 0 comments

Comments

@shawaj
Copy link
Member

shawaj commented Mar 8, 2022

Currently we are using both BALENA_DEVICE_TYPE and VARIANT to determine which config to load:

hm-miner/start-miner.sh

Lines 12 to 21 in 9564845

if [ "$BALENA_DEVICE_TYPE" = "rockpi-4b-rk3399" ]; then
cp /opt/miner/docker.config.rockpi "/opt/miner/releases/$HELIUM_GA_RELEASE/sys.config"
OVERRIDE_CONFIG_URL="${ROCKPI_MINER_CONFIG_URL:-https://helium-assets.nebra.com/docker.config.rockpi}"
elif [ "$BALENA_DEVICE_TYPE" = "intel-nuc" ]; then
cp /opt/miner/docker.config.5g "/opt/miner/releases/$HELIUM_GA_RELEASE/sys.config"
OVERRIDE_CONFIG_URL="${5G_MINER_CONFIG_URL:-https://helium-assets.nebra.com/docker.config.5g}"
elif [ "$VARIANT" = "COMP-PISCESP100" ]; then
cp /opt/miner/docker.config.pisces "/opt/miner/releases/$HELIUM_GA_RELEASE/sys.config"
OVERRIDE_CONFIG_URL="${ROCKPI_MINER_CONFIG_URL:-https://helium-assets.nebra.com/docker.config.pisces}"
fi

We should move to just variant as it's more reliable...

Ref #75 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant