-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.sh
35 lines (31 loc) · 927 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
termux-wake-unlock
apt-get update
apt-get install git -y
apt-get install cmake -y
apt update
apt upgrade -y
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake -DWITH_HWLOC=OFF ..
make
#Ask for pool
echo 'Where do you want to mine?'
pool=("kryptokrona.kalf.org:3333" "fastpool.xyz:10092" "techy.ddns.net:3333" "swepool.org:3333" "privacymine.net:3333" "xkr.pool-pay.com:5387")
for i in "${!pool[@]}"; do
printf "%s\t%s\n" "$i" "${pool[$i]}"
done
read opt
echo After entering your XKR-address the miner will start. To start it again, just enter Termux and type xkr.
echo Your XKR-Address?
read address
#Create shortcut
DIR=$(pwd)
echo "${DIR}/xmrig -a cn-pico -o ${pool[$opt]} -u $address -p x -t $(nproc)" > start.sh
chmod +x start.sh
alias xkr="${DIR}/start.sh"
echo "alias xkr=${DIR}/start.sh" >> ~/.bashrc
#Start xmrig
./xmrig -a cn-pico -o ${pool[$opt]} -u $address -p x -t 8