Your Name 7 years ago
parent
commit
e03e745c29
1 changed files with 28 additions and 8 deletions
  1. 28 8
      setup.sh

+ 28 - 8
setup.sh

@@ -1,12 +1,14 @@
 #!/bin/bash
 set -e
-script_version="1.40"
-rdate="19/03/2018"
+script_version="1.41"
+rdate="02/04/2018"
 
 #### OPTIONS ####
 ROCM_="NO" #rcom compute
-ETHMine="NO"
-SGMINER="NO"
+ETHMine="YES"
+SGMINER="YES"
+SGMINER_TT="YES"
+
 swap_size="16" # 0/4/8/16 Go
 
 #script_version=`grep version version.txt | awk '{ print $2 }'`
@@ -35,7 +37,7 @@ if [ $ROCM_ = "YES"  ]; then echo -e "\e[91m   AMD DRIVER + ROCm Compute firmwar
 if [ $ROCM_ = "NO"  ]; then echo -e "\e[91m    AMD GPU PRO Blockchain \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
 
 sleep 4
 sed -i -e "s/# set const/set const/g" /etc/nanorc
@@ -80,13 +82,19 @@ mkdir /home/work/tempo |true
 cd /home/work/tempo
 curl -f http://wareck.free.fr/grinder/drivers/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 | tar xvj
 
-curl -sf http://wareck.free.fr/grinder/drivers/amdgpu-pro-17.40-492261.tar.xz | tar xvJ
-cd amdgpu-pro-17.40-492261
+#curl -sf http://wareck.free.fr/grinder/drivers/amdgpu-pro-17.40-492261.tar.xz | tar xvJ
+#cd amdgpu-pro-17.40-492261
+
+
+curl -sf http://wareck.free.fr/grinder/drivers/amdgpu-pro-17.50-511655.tar.xz | tar xvJ
+cd amdgpu-pro-17.50-511655
+
 if [ $ROCM_ = "YES" ]
 then
 sed -i -e "s/amdgpu-pro-dkms libdrm2-amdgpu-pro/libdrm2-amdgpu-pro/g" amdgpu-pro-install
 fi
-./amdgpu-pro-install -y
+
+./amdgpu-pro-install --opencl=legacy,rocm -y
 
 echo -e "\n\e[95mInstall AMD SDK :\e[0m"
 cd /home/work/tempo
@@ -160,6 +168,18 @@ cd ~
 echo -e "\e[97mDone !\e[0m"
 fi
 
+if [ $SGMINER_TT = "YES" ]
+then
+echo -e "\n\e[95mInstall SGMINER-TIMETRAVEL:\e[0m"
+cd ~
+if [ ! -d sgminer-timetravel ]
+then
+sudo -u work curl -sf http://wareck.free.fr/openrig/miners/sgminer-timetravel.tar.xz | tar xvJ
+cd ~
+echo -e "\e[97mDone !\e[0m"
+fi
+fi
+
 
 echo -e "\n\e[95mDownloading NoFees Patch:\e[0m"
 cd ~