From 41475bcf3991457844b2243f20dc2deb5f028dd0 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Sun, 28 Jan 2024 20:46:46 +0300 Subject: [PATCH] Update main.sh --- main.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.sh b/main.sh index e2b9f42..d2bd737 100755 --- a/main.sh +++ b/main.sh @@ -3,6 +3,12 @@ DRIVER=535 echo 'Package: *' > /etc/apt/preferences.d/0-a echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-a +echo 'Pin-Priority: 400' >> /etc/apt/preferences.d/0-a +echo 'Package: *' >> /etc/apt/preferences.d/0-a +echo 'Pin: release c=external' >> /etc/apt/preferences.d/0-a +echo 'Pin-Priority: 390' >> /etc/apt/preferences.d/0-a +echo 'Package: *' >> /etc/apt/preferences.d/0-a +echo 'Pin: release c=ubuntu' >> /etc/apt/preferences.d/0-a echo 'Pin-Priority: 390' >> /etc/apt/preferences.d/0-a apt update -y echo "$(apt show nvidia-driver-$DRIVER 2>&1 | grep -v "does not have a stable" | grep Version: | head -n1 | cut -f2 -d":" | cut -f1,2,3 -d"." | cut -f1 -d"-" | tr -d ' ')" > ./linux-nvidia-modules/DRIVER