Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Add a new meta-package for x11/nvidia-driver-304.
Browse files Browse the repository at this point in the history
This should make it easier to manually select the older NVIDIA driver during installation setup if the user knows they need it.
  • Loading branch information
Ken Moore committed Mar 10, 2014
1 parent dbf9952 commit 2aba8c5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Legacy NVIDIA Drivers (304.x) for your desktop / laptop.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hardware-Drivers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nvidia-driver-304:/usr/ports/x11/nvidia-driver-304
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# Enable loading the nvidia binary driver
grep '^nvidia_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
if [ $? -ne 0 ] ; then
echo 'nvidia_load="YES"' >>/boot/loader.conf
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# Enable loading the nvidia binary driver
grep '^nvidia_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null
if [ $? -eq 0 ] ; then
sed -i .bak '/nvidia_load="YES"/d' /boot/loader.conf
fi

0 comments on commit 2aba8c5

Please sign in to comment.