Adding default hook to use newest nvidia version.

This commit is contained in:
Daniel Baumann 2012-12-17 00:06:26 +01:00
parent 7c159c9408
commit 654328aab3
2 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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