Update main.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-11-07 16:27:49 +03:00 committed by GitHub
parent ad3ea28bac
commit 2f88111a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,10 @@ DRIVER=545
echo 'Package: *' > /etc/apt/preferences.d/0-a echo 'Package: *' > /etc/apt/preferences.d/0-a
echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-a echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-a
echo 'Pin-Priority: 450' >> /etc/apt/preferences.d/0-a echo 'Pin-Priority: 400' >> /etc/apt/preferences.d/0-a
echo 'Package: *' > /etc/apt/preferences.d/0-b
echo 'Pin: release c=ubuntu' >> /etc/apt/preferences.d/0-b
echo 'Pin-Priority: 400' >> /etc/apt/preferences.d/0-b
apt update -y apt update -y
echo "cp -vf /usr/lib/pika/nvidia-$(cat ./DRIVER)-$(cat ./KERNEL)/blacklist-pika-nouveau.conf /etc/modprobe.d/blacklist-pika-nouveau.conf" >> ./linux-nvidia-modules/debian/postinst echo "cp -vf /usr/lib/pika/nvidia-$(cat ./DRIVER)-$(cat ./KERNEL)/blacklist-pika-nouveau.conf /etc/modprobe.d/blacklist-pika-nouveau.conf" >> ./linux-nvidia-modules/debian/postinst