From baf333fbcce0c5a05e3357ad3af7289f71a7cea4 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:07:41 +0300 Subject: [PATCH] --- 535.sh | 5 +++-- 545.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/535.sh b/535.sh index ff91980..5ae49ce 100755 --- a/535.sh +++ b/535.sh @@ -1,11 +1,12 @@ #! /bin/bash DRIVER=535 -DRIVER_BUILT=false +DRIVER_BUILT=true echo "$(apt show kernel-pika 2>&1 | grep -v "does not have a stable" | grep Depends: | head -n1 | cut -f2 -d":" | cut -f1 -d"," | cut -f3,4 -d"-" | tr -d ' ')" > ./linux-nvidia-modules/KERNEL -apt show linux-modules-nvidia-$DRIVER-$(cat ./linux-nvidia-modules/KERNEL) 2>&1 | grep -v "does not have a stable" | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ' > ./linux-nvidia-modules/pika_nvidia.txt || export DRIVER_BUILT=false && echo "This driver has never been built for this kernel version before." +apt show linux-modules-nvidia-$DRIVER-$(cat ./linux-nvidia-modules/KERNEL) || export DRIVER_BUILT=false && echo "This driver has never been built for this kernel version before." +apt show linux-modules-nvidia-$DRIVER-$(cat ./linux-nvidia-modules/KERNEL) 2>&1 | grep -v "does not have a stable" | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ' > ./linux-nvidia-modules/pika_nvidia.txt rm -rfv /etc/apt/preferences.d/* echo 'Pin: release c=external' > /etc/apt/preferences.d/0-a diff --git a/545.sh b/545.sh index f0a8367..99b522c 100755 --- a/545.sh +++ b/545.sh @@ -1,11 +1,12 @@ #! /bin/bash DRIVER=545 -DRIVER_BUILT=false +DRIVER_BUILT=true echo "$(apt show kernel-pika 2>&1 | grep -v "does not have a stable" | grep Depends: | head -n1 | cut -f2 -d":" | cut -f1 -d"," | cut -f3,4 -d"-" | tr -d ' ')" > ./linux-nvidia-modules/KERNEL -apt show linux-modules-nvidia-$DRIVER-$(cat ./linux-nvidia-modules/KERNEL) 2>&1 | grep -v "does not have a stable" | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ' > ./linux-nvidia-modules/pika_nvidia.txt || export DRIVER_BUILT=false && echo "This driver has never been built for this kernel version before." +apt show linux-modules-nvidia-$DRIVER-$(cat ./linux-nvidia-modules/KERNEL) || export DRIVER_BUILT=false && echo "This driver has never been built for this kernel version before." +apt show linux-modules-nvidia-$DRIVER-$(cat ./linux-nvidia-modules/KERNEL) 2>&1 | grep -v "does not have a stable" | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ' > ./linux-nvidia-modules/pika_nvidia.txt rm -rfv /etc/apt/preferences.d/* echo 'Pin: release c=external' > /etc/apt/preferences.d/0-a