Last active
June 1, 2019 06:21
-
-
Save asluchevskiy/a15f3df06493744b36e4fb6ba2fdcef7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z $WALLET ]; then | |
WALLET=289044-30 | |
fi | |
PHYSICAL_CORES=$(grep '^core id' /proc/cpuinfo | sort -u | wc -l) | |
CORES=$(nproc) | |
RIGNAME=$(/opt/ethos/sbin/ethos-readconf loc) | |
MPORT=-4444 | |
if [ -z $URL ]; then | |
URL=https://github.com/FinMiner/FinMiner/releases/download/v2.4.3/FinMiner-linux-2.4.3.tar.gz | |
fi | |
BASENAME=$(basename $URL) | |
cd /home/ethos | |
screen -X -S finminer quit | |
killall finminer | |
rm -rf finminer/ | |
wget -q -c $URL | |
tar xvf $BASENAME | |
mv ${BASENAME%.*.*} finminer | |
sed -i ' | |
s/wallet=$/wallet='$WALLET'/g | |
s/;algorithm=/algorithm=RandomHash/g | |
s/;coin=/coin=PASC/g | |
s/;rigName=/rigName='$RIGNAME'/g | |
s/;cpuThreads=/cpuThreads='$CORES'/g | |
s/;mport=/mport='$MPORT'/g | |
' finminer/config.ini | |
echo '#!/bin/bash | |
export CUDA_VISIBLE_DEVICES=-1 | |
screen -d -S finminer -m bash -c "cd /home/ethos/finminer/; while true; do nice -9 ./finminer; done;" | |
' > finminer/run.sh | |
chmod +x finminer/run.sh | |
./finminer/run.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment