Votre Nom 2 years ago
parent
commit
ade407fb53
1 changed files with 8 additions and 3 deletions
  1. 8 3
      build_cube.sh

+ 8 - 3
build_cube.sh

@@ -14,7 +14,6 @@ clear
 function kernel_check {
 if [ $Driver="AMD" ]
 then
-platform='unknown'
 unamestr=$(uname -r)
 if ! [[ "$unamestr" == '5.4.0-54-generic' ]];
 then
@@ -69,7 +68,7 @@ sleep 2
 }
 
 function update_ {
-if [ -f /home/wareck/.pass1 ] && [ -f /home/wareck/.pass2 ]  && [ ! -f /home/wareck/.pass3 ] && [ ! -f /home/wareck/.pass4 ]
+if [ -f /home/wareck/.pass2 ]  && [ ! -f /home/wareck/.pass3 ] && [ ! -f /home/wareck/.pass4 ]
 then
 echo -e "$(tput setaf 10)\nUpdate and install packages:$(tput sgr0)"
 sudo apt-get update
@@ -118,6 +117,7 @@ echo -e "$(tput setaf 10)\nInstall Drivers phase 1:$(tput sgr0)"
 echo -e ""
 sleep 5
 fi
+
 if ! [ -f /home/wareck/.pass1 ]
 then
 	if ! [ -f /etc/modprobe.d/blacklist-nvidia-nouveau.conf ]
@@ -132,9 +132,14 @@ then
 		decompte_
 	fi
 	fi
-	touch ~/.pass1
 fi
 
+if [ $Drivers = "AMD" ]
+then
+touch ~/.pass1
+fi
+
+
 if ! [ -f /home/wareck/.pass2 ]
 then
 sleep 2