mirror of
https://git.wownero.com/lza_menace/docker-wownero.git
synced 2024-08-15 01:03:31 +00:00
30 lines
507 B
Bash
30 lines
507 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=cryptonote.social:2222
|
|
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}
|