From cf4cd8bf52a95c17158bf39ee592f91a0a5261bc Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 16 Dec 2019 10:09:56 +0100 Subject: [PATCH] nvidiactl: Use nouveau driver if nvidia not installed 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. --- nvidiactl/nvidiactl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvidiactl/nvidiactl b/nvidiactl/nvidiactl index fb91818..03688d9 100755 --- a/nvidiactl/nvidiactl +++ b/nvidiactl/nvidiactl @@ -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})