Skip to content

Commit

Permalink
nvidiactl: Use nouveau driver if nvidia not installed
Browse files Browse the repository at this point in the history
Kernels for early testing or for servers don't necessaily have the
nvidia driver installed. If we are on such a kernel and have an nvidia
card installed, fall back to nouveau driver.
  • Loading branch information
donald committed Dec 16, 2019
1 parent ab1a0f9 commit cf4cd8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvidiactl/nvidiactl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ done
nvlink=/usr/share/nvidia/kernel/${kver}/current

if [ ! -h ${nvlink} ] ; then
echo >&2 "WARNING: ${nvlink} is not a link (to nvversion) .."
exit 1
echo >&2 "WARNING: NVIDIA driver not installed for kernel version ${kver}.."
use_nouveau
fi

nvver=$(readlink ${nvlink})
Expand Down

0 comments on commit cf4cd8b

Please sign in to comment.