#!/bin/bash # # Version 1.4 avermore installer for EthOS (by cYnIxX3) # # Install: bash <(curl -s http://thecynix.com/install-avermore.txt) # echo "This is a third party install script for a third party miner, It is not supported by EthOS" echo "Using the command "sudo update-miners" will return the miner to release path" api="https://api.github.com/repos/brian112358/avermore-miner/releases" echo "Attempting install of $(curl -s "$api" | grep 'name.*linux.*zip' | head -n 1 | cut -d '"' -f 4)" # Install cd /tmp wget $(curl -s "$api" | grep 'browser_download_url.*linux.*zip' | head -n 1 | cut -d '"' -f 4) -O avermore-linux.zip if [ "$?" != "0" ]; then echo "Download failed, Exiting"; exit 1; fi unzip avermore-linux.zip if [ "$?" != "0" ]; then echo "Extraction failed, Exiting"; exit 2; fi mv avermore-linux/sgminer /opt/miners/sgminer-gm/sgminer || exit 3 mv avermore-linux/kernel/* /opt/miners/sgminer-gm/kernel/ || exit 4 # Configure cd /home/ethos sed -e '/algorithm/s/"ethash"/"x16r"/' -e '/xintensity/s/"1024"/"256"/' -e '/gpu-threads/s/"1"/"2"/' -i /home/ethos/sgminer.stub.conf # Success message echo "$(ethos-readconf loc) Finished installing:" /opt/miners/sgminer-gm/sgminer --version 2>/dev/null echo "Running this script again in the future will likely upgrade the miner."