[PC-BSD Commits] r425 - pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin

svn at pcbsd.org svn at pcbsd.org
Sat Jul 7 18:26:13 PDT 2007


Author: kris
Date: 2007-07-08 02:26:12 +0100 (Sun, 08 Jul 2007)
New Revision: 425

Modified:
   pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh
Log:

Setup nvidia driver to disable built-in AGP and use NVAGP instead



Modified: pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh	2007-07-08 01:12:29 UTC (rev 424)
+++ pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh	2007-07-08 01:26:12 UTC (rev 425)
@@ -85,6 +85,10 @@
   echo "nvidia_load=\"YES\"" >> /boot/loader.conf
 fi
 
+# Make sure we disable built-in AGP
+cat /boot/device.hints | grep -v "hint.agp.0.disabled" >/tmp/.device.hints
+mv /tmp/.device.hints /boot/device.hints
+echo "hint.agp.0.disabled=\"1\"" >> /boot/device.hints
 
 # If the user didn't select nVidia driver, make sure its not loaded
 else
@@ -110,6 +114,10 @@
   mv /boot/loader.conf.new /boot/loader.conf
 fi
 
+# Make sure we enable built-in AGP
+cat /boot/device.hints | grep -v "hint.agp.0.disabled" >/tmp/.device.hints
+mv /tmp/.device.hints /boot/device.hints
+
 # End of nvidia driver not selected check
 fi
 



More information about the Commits mailing list