Compare commits

...

2 Commits

Author SHA1 Message Date
Tk-Glitch 0fed312742 Get rid of the headers check and put a simple warning instead.
Too many custom kernel packages these days for the previous approach to be effective.

Fixes https://github.com/Frogging-Family/nvidia-all/issues/227
4 weeks ago
Tk-Glitch 4b339ef012 535.171.04
Thanks to ElecTwix!

Fixes https://github.com/Frogging-Family/nvidia-all/pull/226
4 weeks ago

@ -47,8 +47,11 @@ if [ -z "$_driver_version" ] || [ "$_driver_version" = "latest" ] || [ -z "$_dri
error "\"latest\" driver specified, but without branch. Make sure _driver_branch is set."
fi
fi
warning "Please make sure you have the corresponding kernel headers package installed for each kernel on your system !\n"
if [[ -z $CONDITION ]]; then
read -p " Which driver version do you want?`echo $'\n > 1.Vulkan dev: 550.40.59\n 2.550 series: 550.76\n 3.545 series: 545.29.06\n 4.535 series: 535.161.07\n 5.470 series: 470.239.06\n 6.Older series\n 7.Custom version (396.xx series or higher)\n choice[1-7?]: '`" CONDITION;
read -p " Which driver version do you want?`echo $'\n > 1.Vulkan dev: 550.40.59\n 2.550 series: 550.76\n 3.545 series: 545.29.06\n 4.535 series: 535.171.04\n 5.470 series: 470.239.06\n 6.Older series\n 7.Custom version (396.xx series or higher)\n choice[1-7?]: '`" CONDITION;
fi
# This will be treated as the latest regular driver.
if [ "$CONDITION" = "2" ]; then
@ -60,8 +63,8 @@ if [ -z "$_driver_version" ] || [ "$_driver_version" = "latest" ] || [ -z "$_dri
echo '_md5sum=406f748abf16db5d599b652c508b99fd' >> options
echo '_driver_branch=regular' >> options
elif [ "$CONDITION" = "4" ]; then
echo '_driver_version=535.161.07' > options
echo '_md5sum=7e84b8b4ba63be061508921f19ef3b45' >> options
echo '_driver_version=535.171.04' > options
echo '_md5sum=4db587acd8b446fa02cbbc396bc06b0c' >> options
echo '_driver_branch=regular' >> options
elif [ "$CONDITION" = "5" ]; then
echo '_driver_version=470.239.06' > options
@ -241,16 +244,6 @@ fi
msg2 "Building driver version $_driver_version on branch $_driver_branch."
# Skip header check for dkms-only builds with explicit target kernel version
if [ "$_dkms" != "true" ] || [ -z "$_kerneloverride" ]; then
# Some people seem to believe making blank headers is a good idea
if [ $(pacman -Qs linux-headers | head -c1 | wc -c) -eq 0 ] && [ $(pacman -Qs linux-zen-headers | head -c1 | wc -c) -eq 0 ] && [ $(pacman -Qs linux-hardened-headers | head -c1 | wc -c) -eq 0 ] && [ $(pacman -Qs linux-neptune-dri-headers | head -c1 | wc -c) -eq 0 ] && [ $(pacman -Qs linux-cachyos-headers | head -c1 | wc -c) -eq 0 ] && [ $(pacman -Qs linux-cachyos-bore-headers | head -c1 | wc -c) -eq 0 ]; then
error "A (correctly made?) linux-headers package can't be found."
plain "If you're sure it's installed, blame your kernel maintainer."
read -p " Press enter to proceed anyway..."
fi
fi
_pkgname_array=()
# optional series in pkgname

Loading…
Cancel
Save