Update 550.sh
This commit is contained in:
parent
81aaf4d57b
commit
0dba378b8d
3
550.sh
3
550.sh
@ -5,7 +5,8 @@ DRIVER_BUILT=false
|
|||||||
|
|
||||||
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
|
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/*
|
rm -rfv /etc/apt/preferences.d/*
|
||||||
echo 'Pin: release c=external' > /etc/apt/preferences.d/0-a
|
echo 'Pin: release c=external' > /etc/apt/preferences.d/0-a
|
||||||
|
Loading…
Reference in New Issue
Block a user