parent
87f0c1d44a
commit
ce1be32392
@ -1,2 +1,2 @@
|
||||
NVIDIA-Linux-x86_64-285.03.run
|
||||
NVIDIA-Linux-x86-285.03.run
|
||||
NVIDIA-Linux-x86-285.05.09.run
|
||||
NVIDIA-Linux-x86_64-285.05.09.run
|
||||
|
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
tmp=$(mktemp -d)
|
||||
|
||||
trap cleanup EXIT
|
||||
cleanup() {
|
||||
set +e
|
||||
[ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
|
||||
}
|
||||
|
||||
unset CDPATH
|
||||
pwd=$(pwd)
|
||||
version=$(grep Version xorg-x11-drv-nvidia*.spec | cut -f 2 -d ':' | sed 's/ //g')
|
||||
|
||||
for arch in x86 x64 ; do
|
||||
if [ ! -e NVIDIA-Linux-${arch}-${version}.run ] ; then
|
||||
wget -N ftp://download.nvidia.com/XFree86/Linux-${arch}/${version}/NVIDIA-Linux-${arch}-${version}.run
|
||||
fi
|
||||
sh NVIDIA-Linux-${arch}-${version}.run --extract-only --target nvidiapkg-${arch}
|
||||
done
|
||||
|
||||
tar -cjf nvidia-kmod-data-${version}.tar.bz2 nvidiapkg-*/LICENSE nvidiapkg-*/kernel
|
||||
|
@ -1,2 +1,2 @@
|
||||
905c5bd422834d805272e2e52eeee171 NVIDIA-Linux-x86_64-285.03.run
|
||||
8a0954af050083aa7756880f65cf3272 NVIDIA-Linux-x86-285.03.run
|
||||
2d469a90abef50320f548cfa8085e3a0 NVIDIA-Linux-x86-285.05.09.run
|
||||
4d645c795817284296bfcc644b0c9fd2 NVIDIA-Linux-x86_64-285.05.09.run
|
||||
|
Loading…
Reference in new issue