mirror of
https://git.wownero.com/lza_menace/docker-wownero.git
synced 2024-08-15 01:03:31 +00:00
29 lines
518 B
Bash
29 lines
518 B
Bash
#!/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}
|