Browse Source

preparation nvidia

Votre Nom 1 year ago
parent
commit
09e773ac79
3 changed files with 29 additions and 11 deletions
  1. 14 9
      build_cube.sh
  2. 14 2
      options/download_pack.sh
  3. 1 0
      pack/clean.sh

+ 14 - 9
build_cube.sh

@@ -28,9 +28,9 @@ fi
 }
 
 function kernel_check_ {
-if [ $Drivers="AMD" ]
-then
-	unamestr=$(uname -r)
+#if [ $Drivers="AMD" ]
+#then
+unamestr=$(uname -r)
 case $kernel_custom in
 NO)
 	if [[ "$unamestr" == '5.15.0-69-generic' ]]
@@ -64,7 +64,7 @@ YES)
 
 	if ! [[ "$unamestr" == $KLversion ]]
 	then
-	echo -e "$(tput setaf 15)Custom kernel install $(tput setaf 5)$KLversion $(tput setaf 15) (fixed DKMS and WOL) :$(tput sgr0)"
+	echo -e "$(tput setaf 15)Custom kernel install $(tput setaf 9)$KLversion$(tput setaf 15) (fix DKMS/WOL) :$(tput sgr0)"
 	cd /tmp/
 	#wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/custom_kernel.tar.xz
 	wget -c -q --show-progress http://192.168.1.8:3000/wareck/custom_kernel/raw/master/$KHeader
@@ -79,7 +79,7 @@ YES)
 	fi
 	;;
 esac
-fi
+#fi
 }
 
 function print_centered {
@@ -188,7 +188,7 @@ sleep 2
 
 case $Drivers in
 NVIDIA)
-		echo -e "$(tput setaf 10)\nInstall NVIDIA GT710 Drivers 470.$Drivers :$(tput sgr0)"
+		echo -e "$(tput setaf 10)\nInstall NVIDIA GTX1070 Drivers :$(tput sgr0)"
                 cd /home/wareck/
                 echo -e "Download MegaDownload:"
                 git clone https://github.com/wareck/megadown.git
@@ -197,9 +197,10 @@ NVIDIA)
                 cd /home/wareck
                 echo -e ""
                 echo -e "Install drivers:"
-                sudo apt-get install nvidia-driver-470 -y
-                touch /home/wareck/.pass2
-                decompte_
+                #sudo apt-get install nvidia-driver-470 -y
+		sudo apt-get install nvidia-driver-525 -y
+		touch /home/wareck/.pass2
+		decompte_
 ;;
 AMD)
 		echo -e "$(tput setaf 10)\nInstall AMD Drivers :$(tput sgr0)"
@@ -304,7 +305,11 @@ if [ $Drivers = "AMD" ]
 then
 cd /home/wareck
 tar xfJ gpu-miners.tar.xz
+else
+cd /home/wareck
+tar xfJ gpu-miners.tar.xz
 fi
+
 cd /home/wareck/miners
 echo -e "$(tput setaf 10)\nBuild Cgminer-gekko:$(tput sgr0)"
 cd cgminer-gekko

+ 14 - 2
options/download_pack.sh

@@ -4,6 +4,12 @@ if [ ! -d temp ]; then
 mkdir temp
 fi
 cd temp
+if grep "driver=AMD" /home/wareck/Build_Cube/build_cube.sh
+then
+driver=AMD
+else
+driver=NVIDIA
+fi
 
 function download_copy {
 FILE=/home/wareck/Build_Cube/pack/$box
@@ -37,15 +43,21 @@ download_copy
 box=flexfarmer.tar.xz
 download_copy
 
+if [ $Driver="AMD" ]
+then
 #box=amdgpu-install_22.10.2.50102-1_all.deb
 #download_copy
-
 #box=amdgpu-install_22.20.50200-1_all.deb
 #download_copy
-
 box=amdgpu-install_5.4.50403-1_all.deb
 download_copy
 
+else
+box=NVIDIA-Linux-x86_64-525.105.17.run
+download_copy
+
+fi
+
 box=linux-firmware.tar.xz
 download_copy
 

+ 1 - 0
pack/clean.sh

@@ -8,6 +8,7 @@ if [ -f cgminer.conf ];then sudo rm cgminer.conf;fi
 if [ -f amdgpu-install_22.10.2.50102-1_all.deb ]; then sudo rm amdgpu-install_22.10.2.50102-1_all.deb;fi
 if [ -f amdgpu-install_22.20.50200-1_all.deb ]; then sudo rm amdgpu-install_22.20.50200-1_all.deb;fi
 if [ -f amdgpu-install_5.4.50403-1_all.deb ]; then sudo rm amdgpu-install_5.4.50403-1_all.deb;fi
+if [ -f NVIDIA-Linux-x86_64-525.105.17.run ]; then sudo rm NVIDIA-Linux-x86_64-525.105.17.run ;fi
 if [ -f gpu_miners.tar.xz ];then sudo rm gpu_miners.tar.xz ;fi
 if [ -f linux-firmware.tar.xz ]; then sudo rm linux-firmware.tar.xz;fi
 if [ -f gpu-miners.tar.xz ]; then sudo rm gpu-miners.tar.xz;fi