summaryrefslogtreecommitdiff
path: root/share/hooks/normal/0440-update-nvidia-alternative.hook.chroot
blob: e73b9678b122291ccbb1e7fe8c1a7d281cede9ee (plain)
1
2
3
4
5
6
7
8
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