Permalink
Browse files

Add a new meta-package for x11/nvidia-driver-304.

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...
1 parent dbf9952 commit 2aba8c530ac6900e17c61fda00bc83c060efabb4 @beanpole135 beanpole135 committed Mar 10, 2014
View
1 src-sh/pc-metapkgmanager/metaset/pcbsd/NVIDIA-Legacy-304/pkg-desc
@@ -0,0 +1 @@
+Legacy NVIDIA Drivers (304.x) for your desktop / laptop.
View
BIN src-sh/pc-metapkgmanager/metaset/pcbsd/NVIDIA-Legacy-304/pkg-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1 src-sh/pc-metapkgmanager/metaset/pcbsd/NVIDIA-Legacy-304/pkg-parent
@@ -0,0 +1 @@
+Hardware-Drivers
View
1 src-sh/pc-metapkgmanager/metaset/pcbsd/NVIDIA-Legacy-304/ports-list
@@ -0,0 +1 @@
+nvidia-driver-304:/usr/ports/x11/nvidia-driver-304
View
7 src-sh/pc-metapkgmanager/metaset/pcbsd/NVIDIA-Legacy-304/post-install.sh
@@ -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
View
7 src-sh/pc-metapkgmanager/metaset/pcbsd/NVIDIA-Legacy-304/post-remove.sh
@@ -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.