Browse Source

update amd

Votre Nom 2 years ago
parent
commit
546f61f17b
1 changed files with 21 additions and 0 deletions
  1. 21 0
      build_cube.sh

+ 21 - 0
build_cube.sh

@@ -11,6 +11,26 @@ if (( $EUID != 0 )); then
 fi
 fi
 clear
 clear
 
 
+function kernel_check {
+if [ $Driver="AMD" ]
+then
+platform='unknown'
+unamestr=$(uname -r)
+if ! [[ "$unamestr" == '5.4.0-54-generic' ]];
+then
+echo "Linux Kernel version $unamestr:"
+echo "L'installation des Drivers AMD necissite le kernel 5.4.0-54-generic"
+echo ""
+echo "Pour l'installer:"
+echo "sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-modules-extra-5.4.0-54-generic"
+echo "puis rebootez, maintenez ESC pour activer le menu grub"
+echo "booter sur le kernel 5.4.0-54-generic"
+echo "et enfin supprimez les autres kernels."
+exit
+fi
+fi
+}
+
 function print_centered {
 function print_centered {
      [[ $# == 0 ]] && return 1
      [[ $# == 0 ]] && return 1
 
 
@@ -587,6 +607,7 @@ sudo sh -c "echo \"wareck ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
 fi
 fi
 }
 }
 
 
+kernel_check
 intro_
 intro_
 autoroot_
 autoroot_
 nvidia_driver_
 nvidia_driver_