Michal Cieslakiewicz 0e917c8775 k/kmod-nvidia: nvidia kernel modules added, version 390.138.
These are kernel modules from Nvidia proprietary driver, legacy version
(for older cards, supported until 2022). CUDA is not supported. Fix for
5.8 kernels is included. Module taints kernel.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-10-24 10:54:27 +02:00

15 lines
386 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/modprobe.d/nvidia.conf.new