Browse Source

update install

wareck 1 year ago
parent
commit
8223247630
1 changed files with 6 additions and 5 deletions
  1. 6 5
      build_cube.sh

+ 6 - 5
build_cube.sh

@@ -1,12 +1,12 @@
 #!/bin/bash
 set -e
-Version=9.2
+Version=9.5
 Cuda=NO
 ZFS=NO
 Drivers=AMD
+kernel_custom=YES
 Webmin="webmin-2.021"
 kernel_dkms="5.15.0-69-generic"
-kernel_custom="yes"
 
 if (( $EUID != 0 )); then
    echo -e "$(tput setaf 9)This must be run as root. Try 'sudo $0'.$(tput setaf 7)"
@@ -61,12 +61,12 @@ NO)
         decompte_
 	fi
 	;;
-yes)
+YES)
 	if ! [[ "$unamestr" == '5.16.20-custom' ]]
 	then
-	echo -e "$(tput setaf 10)Custom Kernel install :$(tput setaf 7)"
+	echo -e "$(tput setaf 7)Custom kernel install (fixed DKMS and WOL) :$(tput setaf 7)"
 	cd /tmp/
-	wget -c http://folivier.homelinux.org/cube/pack/custom_kernel.tar.xz
+	wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/custom_kernel.tar.xz
 	tar xvfJ custom_kernel.tar.xz
 	cd /tmp/custom_kernel
 	sudo dpkg -i linux-libc-dev_5.16.20-custom-1_amd64.deb
@@ -216,6 +216,7 @@ AMD)
 		sudo apt-get install ocl-icd-opencl-dev -y
 		sudo usermod -a -G video $LOGNAME
 		touch /home/wareck/.pass2
+		sudo apt-get autoremove -y
 		decompte_
 ;;
 *)