Adding default hook to use newest nvidia version.
This commit is contained in:
parent
7c159c9408
commit
654328aab3
|
@ -615,7 +615,8 @@ Set_defaults ()
|
||||||
disable-kexec-tools \
|
disable-kexec-tools \
|
||||||
remove-backup-files \
|
remove-backup-files \
|
||||||
remove-temporary-files \
|
remove-temporary-files \
|
||||||
truncate-log-files}"
|
truncate-log-files \
|
||||||
|
nvidia-default-version}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
kubuntu)
|
kubuntu)
|
||||||
|
@ -633,7 +634,8 @@ Set_defaults ()
|
||||||
disable-kexec-tools \
|
disable-kexec-tools \
|
||||||
remove-backup-files \
|
remove-backup-files \
|
||||||
remove-temporary-files \
|
remove-temporary-files \
|
||||||
truncate-log-files}"
|
truncate-log-files \
|
||||||
|
nvidia-default-version}"
|
||||||
;;
|
;;
|
||||||
esac
|
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