Post
Topic
Board Mining (Altcoins)
Re: KopiemTu 3.0 - zcash ~80 sols/s on 1070 - NVIDIA USB linux distro
by
jk_14
on 21/11/2016, 22:49:08 UTC

Nice! Maybe some direct command to switch coin eg: mine switch zcash or mine switch lbry etc. Also from master rig:  mmis zcash etc... ?


actually, I didn't want to insert any particular coin into a scrypt, but only algos
(coins may be short term, algos are rather longer term):

Code:
root@kopiemtu:~# cat /opt/kopiemtu/miner.sh

TEST=`cat /etc/kopiemtu/miner.conf | grep algo | wc -l`

if [ $TEST -eq 1 ]
then

        URL=`cat /etc/kopiemtu/miner.conf | grep url | cut -d'"' -f4`
        USER=`cat /etc/kopiemtu/miner.conf | grep user | cut -d'"' -f4`
        PASS=`cat /etc/kopiemtu/miner.conf | grep pass | cut -d'"' -f4`
        ALGO=`cat /etc/kopiemtu/miner.conf | grep algo | cut -d'"' -f4`
        TEST=`cat /etc/kopiemtu/miner.conf | grep syslog | cut -d':' -f2`

        if [ "$TEST" = " true" ]
        then
                SYSLOG=`echo --syslog`
        fi

        if [ "$ALGO" = "lbry" ]
        then
                LD_LIBRARY_PATH=/usr/local/cuda/lib64 /opt/miners/ccminer-1.8.2-tpruvot/ccminer -c /etc/kopiemtu/miner.conf

        elif [ "$ALGO" = "lyra2v2" ]
        then
                LD_LIBRARY_PATH=/usr/local/cuda/lib64 /opt/miners/ccminer-vert-1.5.80.4-vert/ccminer -c /etc/kopiemtu/miner.conf

        elif [ "$ALGO" = "equihash" ]
        then
                LD_LIBRARY_PATH=/usr/local/cuda/lib64 /opt/miners/silentarmy/ccminer --use 0,1,2,3 --instances=1 -c $URL -u $USER -p $PASS $SYSLOG

        elif [ "$ALGO" = "ethash" ]
        then
                LD_LIBRARY_PATH=/usr/local/cuda/lib64 /opt/miners/claymore-7.3/ccminer -epool $URL -ewal $USER -epsw $PASS -esm 2 -mode 1 -allpools 1 -logfile /var/log/syslog

        else
                #default ccminer
                LD_LIBRARY_PATH=/usr/local/cuda/lib64 /opt/miners/ccminer-vert-1.5.80.1-vert/ccminer -c /etc/kopiemtu/miner.conf
        fi

fi


that is old habit from BAMT, where in /etc/BAMT configuration file for cgminer was placed.
My idea was to save the time and swap more than one previously prepared configuration by "mine switch" (and filename is where the coin name goes)


P.S. I'm just testing an auto-switching mode - two hours of operation as planned until now Smiley