9 lines
455 B
Plaintext
9 lines
455 B
Plaintext
# Blacklist by default since nvidia* modules have the same aliases
|
|
blacklist nvidia-current
|
|
|
|
# Fail if nouveau loaded
|
|
install nvidia-current if /bin/grep -qw "^nouveau" /proc/modules; then /bin/false; else /sbin/modprobe -i nvidia-current $CMDLINE_OPTS; fi
|
|
|
|
# Load the right module when requested with the name "nvidia"
|
|
install nvidia M=$(/bin/readlink /etc/alternatives/libGL | /usr/bin/cut -d/ -f4 | /bin/grep nvidia) && /sbin/modprobe $M $CMDLINE_OPTS
|