diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-17 00:08:41 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:02 +0200 |
commit | 7ce3113f44550191fab4408f88843133331a5b5e (patch) | |
tree | 075279247c4a75208ec5ba29a6395fb471d12ab8 /share/hooks/0170-update-nvidia-alternative.chroot | |
parent | af54c6b82c9466f99572623d881a818007a26115 (diff) | |
download | vyos-live-build-7ce3113f44550191fab4408f88843133331a5b5e.tar.gz vyos-live-build-7ce3113f44550191fab4408f88843133331a5b5e.zip |
Using consistent naming for default hooks.
Diffstat (limited to 'share/hooks/0170-update-nvidia-alternative.chroot')
-rwxr-xr-x | share/hooks/0170-update-nvidia-alternative.chroot | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hooks/0170-update-nvidia-alternative.chroot b/share/hooks/0170-update-nvidia-alternative.chroot new file mode 100755 index 000000000..e73b9678b --- /dev/null +++ b/share/hooks/0170-update-nvidia-alternative.chroot @@ -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 |