Created
November 22, 2017 22:51
-
-
Save clintar/35716153eb5d65da9e4984d3de9c067f 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
#!/bin/bash | |
if [ ! -f /root/miner_org/ccminer-tpruvot-v2.1/ccminer-before-lyra2 ]; then mv /root/miner_org/ccminer-tpruvot-v2.1/ccminer /root/miner_org/ccminer-tpruvot-v2.1/ccminer-before-lyra2 | |
cat <<\EOF >/root/miner_org/ccminer-tpruvot-v2.1/ccminer | |
#!/bin/bash | |
LD_PRELOAD=/root/miner/ccminer-tpruvot-v2.1/libcudart.so.9.0 /root/miner/ccminer-tpruvot-v2.1/ccminer-lyra2 "$@" | |
EOF | |
chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer | |
cd /root/miner_org/ccminer-tpruvot-v2.1/ | |
wget https://www.dropbox.com/s/s5l4w1grr8xjcwy/ccminer-lyra2.gz?dl=0 -O /root/miner_org/ccminer-tpruvot-v2.1/ccminer-lyra2.gz | |
gunzip -f ccminer-lyra2.gz | |
chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer-lyra2 | |
wget https://www.dropbox.com/s/tixao7n9wwizy9t/libcudart.so.9.0.gz?dl=0 -O /root/miner_org/ccminer-tpruvot-v2.1/libcudart.so.9.0.gz | |
gunzip -f libcudart.so.9.0.gz | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment