You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
518 B
Plaintext
30 lines
518 B
Plaintext
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
set -xe
|
||
|
|
||
|
RECV_ADDR=${1}
|
||
|
SYMBOL=${2:-wow}
|
||
|
THREADS=${3:-2}
|
||
|
|
||
|
if [[ "${SYMBOL}" == "wow" ]]; then
|
||
|
ALGO="rx/wow"
|
||
|
CRYPTO="wownero"
|
||
|
URL=ca.${CRYPTO}.herominers.com:10661
|
||
|
ADDRESS=${RECV_ADDR}
|
||
|
elif [[ "${SYMBOL}" == "xmr" ]]; then
|
||
|
ALGO="rx/0"
|
||
|
CRYPTO="monero"
|
||
|
URL=pool.supportxmr.com:3333
|
||
|
ADDRESS=${RECV_ADDR}
|
||
|
fi
|
||
|
|
||
|
/root/xmrig/build/xmrig \
|
||
|
--donate-level 1 \
|
||
|
--url=${URL} \
|
||
|
--user=${ADDRESS} \
|
||
|
--pass=$HOSTNAME \
|
||
|
--algo=${ALGO} \
|
||
|
--keepalive \
|
||
|
--print-time=10 \
|
||
|
--threads=${THREADS}
|