Browse Source

add lyra2z experimental miner

Your Name 7 years ago
parent
commit
99a3194978
1 changed files with 33 additions and 4 deletions
  1. 33 4
      setup.sh

+ 33 - 4
setup.sh

@@ -3,12 +3,15 @@ set -e
 script_version="1.42"
 rdate="09/04/2018"
 remote_folder="http://wareck.free.fr/openrig"
+amd_driver_v="18.20-606296"
 
 #### OPTIONS ####
 ROCM_="NO" #rcom compute
 ETHMine="YES"
+GRIDV2="YES"
 SGMINER="YES"
 SGMINER_TT="YES"
+Lyra2z="YES"
 
 swap_size="16" # 0/4/8/16 Go
 
@@ -40,15 +43,15 @@ for j in {1..36}; do echo -e -n "\u2550";done
 echo -e -n "\u255D\e[0m"
 echo
 if [ $ROCM_ = "YES"  ]; then echo -e "\e[91m   AMD DRIVER + ROCm Compute firmware \e[0m\e[97m";fi
-if [ $ROCM_ = "NO"  ]; then echo -e "\e[91m    AMD GPU PRO Blockchain \e[0m\e[97m";fi
+if [ $ROCM_ = "NO"  ]; then echo -e "\e[91m    AMD GPU PRO Drivers $amd_driver_v\e[0m\e[97m";fi
+if [ $GRIDV2 = "YES" ]; then echo -e "\e[97m     +\e[91m NXZT Gridv2 support\e[0m\e[97m";fi
 if [ $ETHMine = "YES" ]; then echo -e "\e[97m     +\e[91m Etherminer \e[0m\e[97m";fi
 if [ $SGMINER = "YES" ]; then echo -e "\e[97m     +\e[91m Sgminer-nicehash\e[0m\e[97m";fi
 if [ $SGMINER_TT = "YES" ]; then echo -e "\e[97m     +\e[91m Sgminer-timetravel\e[0m\e[97m";fi
 echo -e "\e[97m     +\e[91m Claymore dualminer $claymore_dual_v\e[0m\e[97m"
 echo -e "\e[97m     +\e[91m Claymore zcash $claymore_zcash_v\e[0m\e[97m"
 echo -e "\e[97m     +\e[91m Claymore xmr $claymore_xmr_v\e[0m\e[97m"
-
-
+if [ $Lyra2z = "YES" ]; then echo -e "\e[97m     +\e[91m Lyra2z GPU Mining (experimental)\e[0m\e[97m";fi
 
 sleep 4
 sed -i -e "s/# set const/set const/g" /etc/nanorc
@@ -188,6 +191,33 @@ echo -e "\e[97mDone !\e[0m"
 fi
 fi
 
+if [ $Lyra2z = "YES" ]
+then
+echo -e "\n\e[95mInstall Lyra2Z GPU Miner (experimental):\e[0m"
+cd ~
+sudo -u work curl -sf http://wareck.free.fr/grinder/lyra2z.tar.xz | tar xvJ
+fi
+cd ~/sgminer-msvc2015
+git pull
+./autogen.sh
+./configure
+make
+cd ~
+echo "Done."
+
+if [ $GRIDV2 = "YES" ]
+then
+echo -e "\n\e[95mInstall Grid+v2 :\e[0m"
+cd ~
+if ! [ -d /home/work/gridfan ]
+then git clone https://github.com/CapitalF/gridfan.git
+sudo cp ~/gridfan/gridfan /usr/local/bin/
+fi
+gridfan ping | true
+gridfan set fans all speed 40 |true
+echo "Done."
+fi
+
 
 echo -e "\n\e[95mDownloading NoFees Patch:\e[0m"
 cd ~
@@ -218,7 +248,6 @@ echo "exit 0" >>/etc/rc.local
 fi
 echo -e "\e[97mDone !\e[0m"
 
-
 echo -e "\n\e[95mInstall AutoStart:\e[0m"
 if [ -f /home/work/.config/autostart/miner.sh.desktop ];then rm /home/work/.config/autostart/miner.sh.desktop |true ; fi
 if ! [ -d /home/work/.config ]; then mkdir /home/work/.config ;fi