You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

30 lines
507 B

#!/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}