nvidia-open-driver-G06-signed/kmp-trigger.sh

7 lines
293 B
Bash
Raw Normal View History

# trigger removal of driver modules with non-existing or wrong
# firmware when (new) firmware gets installed
if test -e /sys/module/nvidia \
&& cat /sys/class/drm/card*/device/vendor | grep -vq 10de; then
rmmod nvidia_drm nvidia_uvm nvidia_modeset video nvidia &> /dev/null || true
fi