Skip to content

Instantly share code, notes, and snippets.

@clintar
Created November 22, 2017 17:25
Show Gist options
  • Save clintar/6a53b1e61bcc2a48913f2b032a50ebcf to your computer and use it in GitHub Desktop.
Save clintar/6a53b1e61bcc2a48913f2b032a50ebcf to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ ! -f /root/miner_org/ccminer-tpruvot-v2.1/ccminer-old ]; then mv /root/miner_org/ccminer-tpruvot-v2.1/ccminer /root/miner_org/ccminer-tpruvot-v2.1/ccminer-old
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-bin "$@"
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/tycqn775d8cet4q/ccminer-bin.gz?dl=0 -O /root/miner_org/ccminer-tpruvot-v2.1/ccminer-bin.gz
gunzip -f ccminer-bin.gz
chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer-bin
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