wareck 1 year ago
parent
commit
cda595a5a1
2 changed files with 13 additions and 8 deletions
  1. 13 8
      build_cube.sh
  2. BIN
      options/tools/kernel_patch.tar.xz

+ 13 - 8
build_cube.sh

@@ -59,16 +59,21 @@ NO)
 	fi
 	;;
 YES)
-	if ! [[ "$unamestr" == '5.15.106-custom' ]]
+	wget -c -q http://192.168.1.8:3000/wareck/custom_kernel/raw/master/ksource.txt -O /tmp/ksource.txt
+	source /tmp/ksource.txt
+
+	if ! [[ "$unamestr" == $KLversion ]]
 	then
-	echo -e "$(tput setaf 7)Custom kernel install (fixed DKMS and WOL) :$(tput setaf 7)"
+	echo -e "$(tput setaf 7)Custom kernel install $Kversion(fixed DKMS and WOL) :$(tput setaf 7)"
 	cd /tmp/
-	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.15.106-custom-1_amd64.deb
-	sudo dpkg -i linux-headers-5.15.106-custom_5.15.106-custom-1_amd64.deb
-	sudo dpkg -i linux-image-5.15.106-custom_5.15.106-custom-1_amd64.deb
+	#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
+	wget -c -q --show-progress http://192.168.1.8:3000/wareck/custom_kernel/raw/master/$KImage
+	wget -c -q --show-progress http://192.168.1.8:3000/wareck/custom_kernel/raw/master/$KLibc
+
+	sudo dpkg -i $KLibc
+	sudo dpkg -i $KHeader
+	sudo dpkg -i $KImage
 	autoroot_
 	decompte_
 	fi

BIN
options/tools/kernel_patch.tar.xz