Adding default hook to use newest nvidia version.
This commit is contained in:
parent
cee58d8779
commit
af54c6b82c
|
@ -615,7 +615,8 @@ Set_defaults ()
|
|||
disable-kexec-tools \
|
||||
remove-backup-files \
|
||||
remove-temporary-files \
|
||||
truncate-log-files}"
|
||||
truncate-log-files \
|
||||
nvidia-default-version}"
|
||||
;;
|
||||
|
||||
kubuntu)
|
||||
|
@ -633,7 +634,8 @@ Set_defaults ()
|
|||
disable-kexec-tools \
|
||||
remove-backup-files \
|
||||
remove-temporary-files \
|
||||
truncate-log-files}"
|
||||
truncate-log-files \
|
||||
nvidia-default-version}"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Use newest nvidia version by default
|
||||
if [ -e /etc/alternatives/nvidia ] && [ -e /usr/lib/nvidia/current ]
|
||||
then
|
||||
update-alternatives --quiet --set nvidia /usr/lib/nvidia/current
|
||||
fi
|
Loading…
Reference in New Issue