0e917c8775
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>
15 lines
386 B
Bash
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
|