Skip to content

Instantly share code, notes, and snippets.

@elproducto
Last active April 7, 2018 19:19
Show Gist options
  • Save elproducto/624a21edbd86c9b307602f696075c468 to your computer and use it in GitHub Desktop.
Save elproducto/624a21edbd86c9b307602f696075c468 to your computer and use it in GitHub Desktop.
rxOC EthControl

Quick guide to leverage EthControl with rxOC easy-to-use Linux AMD Mining v_stopgap crypto mining OS. More information on rxOC can be found at forum post https://bitcointalk.org/index.php?topic=1984302.0. I tweaked the oneBash file in this disto to work with EthControl software. All credit for original code goes to Bitcointalk forum user fullzero for creating and sharing this mining OS for AMD RX based cards. EthControl is dashboard/controller for mining rig.

The method described below is a way to add more miners to this version of rxOC. EhtControl downloads crypto mining software to your rig based on what configuration you have setup in the EthMonitoring website. You can get more information around EthMonitoring at http://ethmonitoring.com You have the option to use one rig for free and pay to get premium service to add more rigs. Use promo code -rxocelp to get 5% discount on your order.

If you find this instruction helpful please donate to my ETH address below 0x4531fdc5c5c18d403ee72b18905485cacc628ebb

Instructions

==============

  • Download rxOC easy-to-use Linux AMD Mining v_stopgap from forum post above
  • Make you boot media based on direction given in the forum post
  • Follow any additional directions for Bios tweaks from the forum post
  • Boot USB Drive
  • Log into http://ethmonitoring.com/
  • Create a new config in the EthControl Tab, follow instructions Guide if needed. Note your rig name to be used later
  • Download EthControl based on instruction provide further down in EthControl tab of website
  • Copy EthControl to eth folder once downloaded. cp EthControl ./eth/
  • You will need to make some change to the oneBash script to allow rxOC to use EthControl. You can download this gist and edit the basOne script based on below direction or you can make the edits yourself to bashOne file.
  • If you choose to make the edit yourself please follow these instructions
    • In the terminal edit file oneBash to change coin variable, add two variables, and a new miner statement. You can refer to bashOne script in this gist
    • Change COIN="ETH" to COIN="ETHC" on line 23
    • Add the two following variables below text "# set YOUR ADDRESSES, WORKERS, POOL and PORT:". Replace a003d856dcbb12e2eeef9f3ed9f0357a with your token you can find on EthMonitoring website under Accounts > Accounts. Replace fvmine with the rig name you used for the config setup prior
ETHCTOKEN="a003d856dcbb12e2eeef9f3ed9f0357a"
ETHCRIGNAME="fvmine"
  • Add the following code one live above if [ $COIN == "NICE" ] statement
if [ $COIN == "ETHC" ]
then
HCD='/home/m1/eth/EthControl'
until $HCD  --accessToken=$ETHCTOKEN --rigName=$ETHCRIGNAME
   do
   echo "FAILURE; reinit in 5" >&2
   sleep 5
done
fi
  • Reboot your rig and Profit. All control and monitoring can happen on the EthMonitoring website
  • You can use this an an example on how to add more miner to oneBash script you download.
#!/bin/bash
# rxOC v_stopgap by fullzero
#
# Open a terminal to launch miner; will auto launch on boot
#
# firefox has an OP bookmark; look at the OP for more information
#
# click the Desktop Sharing icon on the left for RDP
#
# your rig IP displays at beginning of mining process
#
# worker names will default to your rig host address (last 3 digits of rig IP)
#
# USE ALL CAPS
#
# ZEC NICE HUSH ZEN ZCL MUSIC ETC EXP ETH DCR PASC
# DUAL_ETC_DCR DUAL_ETC_PASC DUAL_ETC_LBC DUAL_ETC_SC
# DUAL_EXP_DCR DUAL_EXP_PASC DUAL_EXP_LBC DUAL_EXP_SC
# DUAL_ETH_DCR DUAL_ETH_PASC DUAL_ETH_LBC DUAL_ETH_SC
# DUAL_MUSIC_DCR DUAL_MUSIC_PASC DUAL_MUSIC_LBC DUAL_MUSIC_SC
COIN="ETHC"
TEAMVIEWER="NO" # YES NO
SSH="YES" # YES NO
PERFORMANCE_LEVEL="HIGH" # HIGH LOW
# select level: to see supported clocks scroll to the top of the mining process
__CORE_OVERCLOCK_LEVEL=7 # for ETH use lowest without decreasing the hashrate / Highest for ZEC
MEMORY_OVERCLOCK_LEVEL=1 # use highest level
OVERDRIVE="NO" # YES NO
# unlikely to be stable above 10%
OVERDRIVE_PERCENT=5 # for zec 5 for eth 10
USE_ENVIRONMENTAL_VARIBLES="NO"
MANUAL_FAN="YES" # YES NO
# Set fan speed if MANUAL_FAN="NO"
# set fanspeed to between 150 and 255
# DO NOT SET BELOW 150, I HIGHLY RECOMMEND 175 or higher
FAN_SPEED=203
# If you are using a slow USB Key
SLOW_USB_KEY_MODE="NO" # YES NO
# Mine XMR with CPU
plusCPU="NO" # YES NO
# Number of threads for plusCPU
threadCOUNT="1" # varies per CPU
# IP as worker implementation
########################################################################################
IPW=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
# for_full_IP with _ instead of .
#IP_AS_WORKER=$(echo $IPW | sed 'y/./_/')
echo ""
# using only host address
IP_AS_WORKER=$(echo -n $IPW | tail -c -3 | sed 'y/./_/')
echo workername: $IP_AS_WORKER
########################################################################################
# set YOUR ADDRESSES, WORKERS, POOL and PORT:
ETHCTOKEN="a003d856dcbb12e2eeef9f3ed9f0357a"
ETHCRIGNAME="fvmine"
OPTIMINERorCLAYMORE="CLAYMORE" # choose OPTIMINER or CLAYMORE
ZEC_WORKER="$IP_AS_WORKER"
ZEC_ADDRESS="t1XfkZUZWME8FnRiFxHZQAQ2K1UdQMbshJp"
ZEC_POOL="us1-zcash.flypool.org:3333"
ZEC_INTENSITY=6
ZEC_EXTENTION_ARGUMENTS=" -allpools 1"
ZCL_WORKER="$IP_AS_WORKER"
ZCL_ADDRESS="fullzero22"
ZCL_POOL="zcl.coinmine.pl:7007"
ZCL_INTENSITY=6
ZCL_EXTENTION_ARGUMENTS=""
ZEN_WORKER="$IP_AS_WORKER"
ZEN_ADDRESS="znictSisUCALijmhJrjLS8FozvcJRAiHc29"
ZEN_POOL="us.zenmine.pro:9009"
ZEN_INTENSITY=6
ZEN_EXTENTION_ARGUMENTS=""
HUSH_WORKER="$IP_AS_WORKER"
HUSH_ADDRESS="fullzero22"
HUSH_POOL="zdash.suprnova.cc:4048"
HUSH_INTENSITY=6
HUSH_EXTENTION_ARGUMENTS=""
BTC_ADDRESS="18Y5HYe3BAwAhTAkFLbD52o8NqtrN3DtpF"
# NICE autoconverts to BTC: ensure you update BTC_ADDRESS if you use NICE
NICE_WORKER="$IP_AS_WORKER"
NICE_POOL="stratum+tcp://daggerhashimoto.usa.nicehash.com:3353"
GENOIL_NICE_POOL="daggerhashimoto.usa.nicehash.com:3353"
NICE_EXTENTION_ARGUMENTS="" # add any additional claymore arguments desired here
ETHERMINEdotORG="YES"
CLAYMORE_VERSION="10_1" # choose 10_1 or 9_5 or 9_4 or 8_0
GENOILorCLAYMORE="CLAYMORE" # choose GENOIL or CLAYMORE
ETH_WORKER="$IP_AS_WORKER"
ETH_ADDRESS="0x4dcA66d28328dbd65cb701661B2984AC6d43d642"
ETH_POOL="us2.ethermine.org:4444"
ETH_EXTENTION_ARGUMENTS="" # add any additional claymore arguments desired here
ETC_WORKER="$IP_AS_WORKER"
ETC_ADDRESS="0xc3eab16bd575e5498efef2b038c8c178598d659e"
ETC_POOL="us1-etc.ethermine.org:4444"
ETC_EXTENTION_ARGUMENTS="" # add any additional claymore arguments desired here
EXP_WORKER="$IP_AS_WORKER"
EXP_ADDRESS="0xa7108c64e6fec3193091f2cae2a5c62a36d4396a"
EXP_POOL="exp-us.dwarfpool.com:8018"
EXP_EXTENTION_ARGUMENTS="" # add any additional claymore arguments desired here
MUSIC_WORKER="$IP_AS_WORKER"
MUSIC_ADDRESS="0x48919b296f648bd2edfeb6f336d2b3f66a741ea5"
MUSIC_POOL="stratum+tcp://213.154.202.174:3334"
MUSIC_EXTENTION_ARGUMENTS="" # add any additional claymore arguments desired here
SC_WORKER="$IP_AS_WORKER"
SC_ADDRESS="1569a3353bb3353aedc6e0b79e796787ffcbe45d6caaa28f678ba74a5c50fdb02e735244e706"
SC_POOL="sia-us-east1.nanopool.org:7777"
SC_GW_POOL="sia-us-east1.nanopool.org:9980"
DCR_WORKER="$IP_AS_WORKER"
DCR_ADDRESS="fullzero22"
DCR_POOL="stratum+tcp://dcr.suprnova.cc:3252"
PASC_WORKER="$IP_AS_WORKER"
PASC_ADDRESS="86646-64.b12a9833f216b5a8"
PASC_POOL="pasc-us-east1.nanopool.org:15555"
# if plusCPU is "YES" replace with your XMR info
XMR_WORKER="$IP_AS_WORKER"
XMR_ADDRESS="47sghzufGhJJDQEbScMCwVBimTuq6L5JiRixD8VeGbpjCTA12noXmi4ZyBZLc99e66NtnKff34fHsGRoyZk3ES1s1V4QVcB.23d5f83d0021a50d8f809f4727c8622d3ea25798942bcb1ba0eee40cc157f65c"
XMR_POOL="stratum+tcp://xmr-us-east1.nanopool.org:14444"
# settings above: ALL ADJUSTABLE SETINGS ABOVE THIS LINE
#########################################################################
#########################################################################
#########################################################################
#########################################################################
#########################################################################
#########################################################################
#########################################################################
#########################################################################
#########################################################################
#########################################################################
#########################################################################
#########################################################################
# implementation below: NO SETTINGS BELOW
IP=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
echo ''
echo rig IP: $IP
echo ''
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ $USE_ENVIRONMENTAL_VARIBLES == "YES" ]
then
export GPU_FORCE_64BIT_PTR=1
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_ALLOC_PERCENT=100
echo ENVIRONMENTAL VARIBLES SET
fi
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
echo ''
lspci | grep VGA
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
sudo '/home/m1/rocm-smi' -s
echo ''
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
sudo '/home/m1/rocm-smi' -r
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ $PERFORMANCE_LEVEL == "HIGH" ]
then
sudo '/home/m1/rocm-smi' --setperflevel high
fi
if [ $PERFORMANCE_LEVEL == "LOW" ]
then
sudo '/home/m1/rocm-smi' --setperflevel low
fi
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ $OVERDRIVE == "YES" ]
then
sudo '/home/m1/rocm-smi' --setoverdrive $OVERDRIVE_PERCENT
fi
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
sudo '/home/m1/rocm-smi' --setmclk $MEMORY_OVERCLOCK_LEVEL
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
sudo '/home/m1/rocm-smi' --setsclk $__CORE_OVERCLOCK_LEVEL
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ $TEAMVIEWER == "YES" ]
then
sudo teamviewer --daemon enable
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
fi
if [ $TEAMVIEWER == "NO" ]
then
sudo teamviewer --daemon disable
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
fi
if [ $SSH == "YES" ]
then
sudo cp '/etc/init/ssh.conf-on' '/etc/init/ssh.conf'
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
fi
if [ $SSH == "NO" ]
then
sudo cp '/etc/init/ssh.conf-off' '/etc/init/ssh.conf'
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
fi
if [ $plusCPU == "YES" ]
then
HCD='/home/m1/cpuOPT/cpuminer'
XMRADDR="$XMR_ADDRESS.$XMR_WORKER"
guake -r $HCD -e "$HCD -a cryptonight -o $XMR_POOL -u $XMRADDR -p x -t $threadCOUNT"
fi
ROC='/home/m1/rocm-smi'
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ $MANUAL_FAN == "YES" ]
then
sudo '/home/m1/rocm-smi' --setfan $FAN_SPEED -f
fi
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ "$FAN_SPEED" -lt "105" ]
then
FAN_SPEED=105
fi
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ $MANUAL_FAN == "NO" ]
then
echo "FANS ON AUTO"
fi
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ $SLOW_USB_KEY_MODE == "YES" ]
then
sleep 6
fi
if [ $COIN == "ETHC" ]
then
HCD='/home/m1/eth/EthControl'
until $HCD --accessToken=$ETHCTOKEN --rigName=$ETHCRIGNAME
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "NICE" ]
then
if [ $GENOILorCLAYMORE == "GENOIL" ]
then
HCD='/home/m1/eth/Genoil/ethminer'
NICEADDR="$BTC_ADDRESS.$NICE_WORKER"
until $HCD -SP 2 -S $GENOIL_NICE_POOL -O $NICEADDR:x -G
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $GENOILorCLAYMORE == "CLAYMORE" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
NICEADDR="$BTC_ADDRESS.$NICE_WORKER"
until $HCD -epool $NICE_POOL -ewal $NICEADDR -epsw x -esm 3 -allpools 1 -estale 0 -dbg -1 $NICE_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
fi
if [ $COIN == "ZEC" ]
then
if [ $OPTIMINERorCLAYMORE == "OPTIMINER" ]
then
cd /home/m1/zec/optiminer-zcash
export GPU_FORCE_64BIT_PTR=1
ZECADDR="$ZEC_ADDRESS.$ZEC_WORKER"
HCD='/home/m1/zec/optiminer-zcash/optiminer-zcash'
screen -dmS miner $HCD -s $ZEC_POOL -u $ZECADDR -p x -i $ZEC_INTENSITY
echo "mining in screen: screen -r miner"
while [ 1 ]
do
sleep 100
done
fi
if [ $OPTIMINERorCLAYMORE == "CLAYMORE" ]
then
HCD='/home/m1/zec/c12_5/zecminer64'
ZECADDR="$ZEC_ADDRESS.$ZEC_WORKER"
screen -dmS miner $HCD -zpool $ZEC_POOL -zwal $ZECADDR -zpsw x -dbg -1 -i $ZEC_INTENSITY $ZEC_EXTENTION_ARGUMENTS
echo "mining in screen: screen -r miner"
while [ 1 ]
do
sleep 100
done
fi
fi
if [ $COIN == "ZCL" ]
then
if [ $OPTIMINERorCLAYMORE == "OPTIMINER" ]
then
cd /home/m1/zec/optiminer-zcash
export GPU_FORCE_64BIT_PTR=1
ZCLADDR="$ZCL_ADDRESS.$ZCL_WORKER"
HCD='/home/m1/zec/optiminer-zcash/optiminer-zcash'
until $HCD -s $ZCL_POOL -u $ZCLADDR -p x -i $ZCL_INTENSITY
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $OPTIMINERorCLAYMORE == "CLAYMORE" ]
then
HCD='/home/m1/zec/c12_5/zecminer64'
ZCLADDR="$ZCL_ADDRESS.$ZCL_WORKER"
until $HCD -zpool $ZCL_POOL -zwal $ZCLADDR -zpsw x -dbg -1 -i $ZCL_INTENSITY $ZCL_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
fi
if [ $COIN == "ZEN" ]
then
if [ $OPTIMINERorCLAYMORE == "OPTIMINER" ]
then
cd /home/m1/zec/optiminer-zcash
export GPU_FORCE_64BIT_PTR=1
ZENADDR="$ZEN_ADDRESS.$ZEN_WORKER"
HCD='/home/m1/zec/optiminer-zcash/optiminer-zcash'
until $HCD -s $ZEN_POOL -u $ZENADDR -p x -i $ZEN_INTENSITY
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $OPTIMINERorCLAYMORE == "CLAYMORE" ]
then
HCD='/home/m1/zec/c12_5/zecminer64'
ZENADDR="$ZEN_ADDRESS.$ZEN_WORKER"
until $HCD -zpool $ZEN_POOL -zwal $ZENADDR -zpsw x -dbg -1 -i $ZEN_INTENSITY $ZEN_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
fi
if [ $COIN == "HUSH" ]
then
if [ $OPTIMINERorCLAYMORE == "OPTIMINER" ]
then
cd /home/m1/zec/optiminer-zcash
export GPU_FORCE_64BIT_PTR=1
HUSHADDR="$HUSH_ADDRESS.$HUSH_WORKER"
HCD='/home/m1/zec/optiminer-zcash/optiminer-zcash'
until $HCD -s $HUSH_POOL -u $HUSHADDR -p x -i $HUSH_INTENSITY
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $OPTIMINERorCLAYMORE == "CLAYMORE" ]
then
HCD='/home/m1/zec/c12_5/zecminer64'
HUSHADDR="$HUSH_ADDRESS.$HUSH_WORKER"
until $HCD -zpool $HUSH_POOL -zwal $HUSHADDR -zpsw x -dbg -1 -i $HUSH_INTENSITY $HUSH_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
fi
if [ $COIN == "ETC" ]
then
if [ $GENOILorCLAYMORE == "CLAYMORE" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "10_1" ]
then
HCD='/home/m1/eth/10_1/ethdcrminer64'
fi
fi
ETCADDR="$ETC_ADDRESS/$ETC_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETCADDR="$ETC_ADDRESS.$ETC_WORKER"
fi
screen -dmS miner $HCD -epool $ETC_POOL -ewal $ETCADDR -epsw x -mode 1 -dbg -1 $ETC_EXTENTION_ARGUMENTS
echo "mining in screen: screen -r miner"
while [ 1 ]
do
sleep 100
done
fi
if [ $COIN == "EXP" ]
then
if [ $GENOILorCLAYMORE == "GENOIL-CURRENTLY-NOT-SUPPORTED" ]
then
HCD='/home/m1/eth/Genoil/ethminer'
EXPADDR="$EXP_ADDRESS/$EXP_WORKER"
until $HCD -S $EXP_POOL -O $EXPADDR:x -G
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
#if [ $GENOILorCLAYMORE == "CLAYMORE" ]
#then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "10_1" ]
then
HCD='/home/m1/eth/10_1/ethdcrminer64'
fi
EXPADDR="$EXP_ADDRESS/$EXP_WORKER"
until $HCD -epool $EXP_POOL -ewal $EXPADDR -epsw x -mode 1 -allpools 1 -dbg -1 $EXP_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
#fi
if [ $COIN == "ETH" ]
then
if [ $GENOILorCLAYMORE == "CLAYMORE" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "10_1" ]
then
HCD='/home/m1/eth/10_1/ethdcrminer64'
fi
fi
ETHADDR="$ETH_ADDRESS/$ETH_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETHADDR="$ETH_ADDRESS.$ETH_WORKER"
fi
screen -dmS miner $HCD -epool $ETH_POOL -ewal $ETHADDR -epsw x -mode 1 -dbg -1 $ETH_EXTENTION_ARGUMENTS
echo "mining in screen: screen -r miner"
while [ 1 ]
do
sleep 100
done
fi
if [ $COIN == "MUSIC" ]
then
if [ $GENOILorCLAYMORE == "GENOIL-CURRENTLY-NOT-SUPPORTED" ]
then
HCD='/home/m1/eth/Genoil/ethminer'
MUSICADDR="$MUSIC_ADDRESS/$MUSIC_WORKER"
until $HCD -S $MUSIC_POOL -O $MUSICADDR:x -G
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
#if [ $GENOILorCLAYMORE == "CLAYMORE" ]
#then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
MUSICADDR="$MUSIC_ADDRESS/$MUSIC_WORKER"
until $HCD -epool $MUSIC_POOL -ewal $MUSICADDR -epsw x -mode 1 -allpools 1 -dbg -1 $MUSIC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
#fi
if [ $COIN == "DCR" ]
then
HCD='/home/m1/pasc/sgminer'
ADDR="$DCR_ADDRESS.$DCR_WORKER"
until $HCD -k decred -o $DCR_POOL -u $ADDR -p x -p x -I 21 -w 64 -g2
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "PASC" ]
then
HCD='/home/m1/pasc/sgminer'
ADDR="$PASC_ADDRESS..$PASC_WORKER"
until $HCD -k pascal -o $PASC_POOL -u $ADDR -p x -p x -I 21 -w 64 -g2
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_ETC_DCR" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
ETCADDR="$ETC_ADDRESS/$ETC_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETCADDR="$ETC_ADDRESS.$ETC_WORKER"
fi
DADDR="$DCR_ADDRESS.$DCR_WORKER"
until $HCD -epool $ETC_POOL -ewal $ETCADDR -epsw x -dpool $DCR_POOL -dwal $DADDR -dpsw x -dbg -1 $ETC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_ETC_PASC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
ETCADDR="$ETC_ADDRESS/$ETC_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETCADDR="$ETC_ADDRESS.$ETC_WORKER"
fi
ADDR="$PASC_ADDRESS..$PASC_WORKER"
until $HCD -epool $ETC_POOL -ewal $ETCADDR -epsw x -dpool $PASC_POOL -dwal $ADDR -dpsw x -dcoin pasc -dbg -1 $ETC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_ETC_LBC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
ETCADDR="$ETC_ADDRESS/$ETC_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETCADDR="$ETC_ADDRESS.$ETC_WORKER"
fi
ADDR="$LBC_ADDRESS.$LBC_WORKER"
until $HCD -epool $ETC_POOL -ewal $ETCADDR -epsw x -dpool $LBC_POOL -dwal $ADDR -dpsw x -dcoin lbc -dbg -1 $ETC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_ETC_SC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
ETCADDR="$ETC_ADDRESS/$ETC_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETCADDR="$ETC_ADDRESS.$ETC_WORKER"
fi
SCADDR="$SC_ADDRESS/$SC_WORKER"
until $HCD -epool $ETC_POOL -ewal $ETCADDR -epsw x -allpools 1 -dpool $SC_POOL -dwal $SCADDR -dpsw x -dcoin sc -dcri 70 -dbg -1 $ETC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_EXP_DCR" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
EXPADDR="$EXP_ADDRESS/$EXP_WORKER"
DADDR="$DCR_ADDRESS.$DCR_WORKER"
until $HCD -epool $EXP_POOL -ewal $EXPADDR -epsw x -allpools 1 -dpool $DCR_POOL -dwal $DADDR -dpsw x $EXP_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_EXP_PASC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
EXPADDR="$EXP_ADDRESS/$EXP_WORKER"
ADDR="$PASC_ADDRESS..$PASC_WORKER"
until $HCD -epool $EXP_POOL -ewal $EXPADDR -epsw x -allpools 1 -dpool $PASC_POOL -dwal $ADDR -dpsw x -dcoin pasc -dbg -1 $EXP_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_EXP_LBC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
EXPADDR="$EXP_ADDRESS/$EXP_WORKER"
ADDR="$LBC_ADDRESS.$LBC_WORKER"
until $HCD -epool $EXP_POOL -ewal $EXPADDR -epsw x -allpools 1 -dpool $LBC_POOL -dwal $ADDR -dpsw x -dcoin lbc -dbg -1 $EXP_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_EXP_SC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
EXPADDR="$EXP_ADDRESS/$EXP_WORKER"
SCADDR="$SC_ADDRESS/$SC_WORKER"
until $HCD -epool $EXP_POOL -ewal $EXPADDR -epsw x -allpools 1 -dpool $SC_POOL -dwal $SCADDR -dpsw x -dcoin sc -dcri 70 -dbg -1 $EXP_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_MUSIC_DCR" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
MUSICADDR="$MUSIC_ADDRESS/$MUSIC_WORKER"
DADDR="$DCR_ADDRESS.$DCR_WORKER"
until $HCD -epool $MUSIC_POOL -ewal $MUSICADDR -epsw x -allpools 1 -dpool $DCR_POOL -dwal $DADDR -dpsw x -dbg -1 $MUSIC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_MUSIC_PASC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
MUSICADDR="$MUSIC_ADDRESS/$MUSIC_WORKER"
ADDR="$PASC_ADDRESS..$PASC_WORKER"
until $HCD -epool $MUSIC_POOL -ewal $MUSICADDR -epsw x -allpools 1 -dpool $PASC_POOL -dwal $ADDR -dpsw x -dcoin pasc -dbg -1 $MUSIC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_MUSIC_LBC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
MUSICADDR="$MUSIC_ADDRESS/$MUSIC_WORKER"
ADDR="$LBC_ADDRESS.$LBC_WORKER"
until $HCD -epool $MUSIC_POOL -ewal $MUSICADDR -epsw x -allpools 1 -dpool $LBC_POOL -dwal $ADDR -dpsw x -dcoin lbc -dbg -1 $MUSIC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_MUSIC_SC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
MUSICADDR="$MUSIC_ADDRESS/$MUSIC_WORKER"
SCADDR="$SC_ADDRESS/$SC_WORKER"
until $HCD -epool $MUSIC_POOL -ewal $MUSICADDR -epsw x -allpools 1 -dpool $SC_POOL -dwal $SCADDR -dpsw x -dcoin sc -dcri 70 -dbg -1 $MUSIC_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_ETH_DCR" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
ETHADDR="$ETH_ADDRESS/$ETH_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETHADDR="$ETH_ADDRESS.$ETH_WORKER"
fi
DADDR="$DCR_ADDRESS.$DCR_WORKER"
until $HCD -epool $ETH_POOL -ewal $ETHADDR -epsw x -dpool $DCR_POOL -dwal $DADDR -dpsw x -dbg -1 $ETH_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_ETH_PASC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
ETHADDR="$ETH_ADDRESS/$ETH_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETHADDR="$ETH_ADDRESS.$ETH_WORKER"
fi
ADDR="$PASC_ADDRESS..$PASC_WORKER"
until $HCD -epool $ETH_POOL -ewal $ETHADDR -epsw x -dpool $PASC_POOL -dwal $ADDR -dpsw x -dcoin pasc -dbg -1 $ETH_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_ETH_LBC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
ETHADDR="$ETH_ADDRESS/$ETH_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETHADDR="$ETH_ADDRESS.$ETH_WORKER"
fi
ADDR="$LBC_ADDRESS.$LBC_WORKER"
until $HCD -epool $ETH_POOL -ewal $ETHADDR -epsw x -dpool $LBC_POOL -dwal $ADDR -dpsw x -dcoin lbc -dbg -1 $ETH_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
if [ $COIN == "DUAL_ETH_SC" ]
then
if [ $CLAYMORE_VERSION == "9_5" ]
then
HCD='/home/m1/eth/9_5/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "9_4" ]
then
HCD='/home/m1/eth/9_4/ethdcrminer64'
fi
if [ $CLAYMORE_VERSION == "8_0" ]
then
HCD='/home/m1/eth/8_0/ethdcrminer64'
fi
ETHADDR="$ETH_ADDRESS/$ETH_WORKER"
if [ $ETHERMINEdotORG == "YES" ]
then
ETHADDR="$ETH_ADDRESS.$ETH_WORKER"
fi
SCADDR="$SC_ADDRESS/$SC_WORKER"
until $HCD -epool $ETH_POOL -ewal $ETHADDR -epsw x -allpools 1 -dpool $SC_POOL -dwal $SCADDR -dpsw x -dcoin sc -dcri 70 -dbg -1 $ETH_EXTENTION_ARGUMENTS
do
echo "FAILURE; reinit in 5" >&2
sleep 5
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment