Browse Source

update wol

Votre Nom 1 year ago
parent
commit
8282b4be59
1 changed files with 13 additions and 11 deletions
  1. 13 11
      build_cube.sh

+ 13 - 11
build_cube.sh

@@ -158,17 +158,6 @@ fi
 if ! [ -f /home/wareck/.pass2 ]
 then
 sleep 2
-if lspci -v | grep "Atheros QCA8171" >/dev/null
-then
-echo -e "$(tput setaf 10)\nAtheros QCA8171 detected WOL patching :$(tput sgr0)"
-sleep 2
-cp /home/wareck/Build_Cube/options/tools/kernel_patch.tar.xz /tmp
-cd /tmp
-tar xvfJ kernel_patch.tar.xz
-cd /tmp/kernel_patch/alx_dkms_installer/
-./setup
-sleep 1
-fi
 
 case $Drivers in
 NVIDIA)
@@ -196,6 +185,19 @@ AMD)
 		tar xfJ linux-firmware.tar.xz
 		sudo cp /home/wareck/linux-firmware/amdgpu/* /lib/firmware/amdgpu/
 		sudo rm -r -f /home/wareck/linux-firmware /home/wareck/linux-firmware.tar.xz
+
+		if lspci -v | grep "Atheros QCA8171" >/dev/null
+		then
+		echo -e "\nAtheros QCA8171 detected WOL patching :"
+		sleep 2
+		cp /home/wareck/Build_Cube/options/tools/kernel_patch.tar.xz /tmp
+		cd /tmp
+		tar xvfJ kernel_patch.tar.xz
+		cd /tmp/kernel_patch/alx_dkms_installer/
+		./setup
+		sleep 1
+		fi
+
 		sudo apt-get install /home/wareck/Build_Cube/pack/amdgpu-install_5.4.50403-1_all.deb -y
 		sudo apt-get update
 		sudo amdgpu-install --opencl=legacy --accept-eula -y