Update main.sh
This commit is contained in:
parent
63cd7650f0
commit
0988efda7d
7
main.sh
7
main.sh
@ -8,10 +8,9 @@ echo 'Package: *' > /etc/apt/preferences.d/0-b
|
|||||||
echo 'Pin: release c=ubuntu' >> /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
|
echo 'Pin-Priority: 400' >> /etc/apt/preferences.d/0-b
|
||||||
apt update -y
|
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
|
||||||
echo "$(apt-cache show nvidia-driver-$DRIVER | grep Version: | head -n1 | cut -f2 -d":" | cut -f1,2,3 -d"." | cut -f1 -d"-" | tr -d ' ')" > ./linux-nvidia-modules/DRIVER
|
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-cache show kernel-pika | grep Depends: | head -n1 | cut -f2 -d":" | cut -f1 -d"," | cut -f3,4 -d"-" | tr -d ' ')" > ./linux-nvidia-modules/KERNEL
|
echo "$(apt show nvidia-kernel-source-$DRIVER 2>&1 | grep -v "does not have a stable" | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ')" > ./linux-nvidia-modules/DRIVER_VERSION
|
||||||
echo "$(apt-cache show nvidia-kernel-source-$DRIVER | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ')" > ./linux-nvidia-modules/DRIVER_VERSION
|
|
||||||
|
|
||||||
cd ./linux-nvidia-modules
|
cd ./linux-nvidia-modules
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user