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

svn at pcbsd.org svn at pcbsd.org
Mon Aug 4 09:58:31 PDT 2008


Author: kris
Date: 2008-08-04 09:58:30 -0700 (Mon, 04 Aug 2008)
New Revision: 2518

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

Fixed a bug when selecting "intel" as the default driver



Modified: pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh	2008-08-01 20:40:58 UTC (rev 2517)
+++ pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh	2008-08-04 16:58:30 UTC (rev 2518)
@@ -8,10 +8,10 @@
 
 # Get the real driver name and save the value from xorg-gui
 SELDRIVER="${DRIVER}" ; export SELDRIVER
-grep "${DRIVER}:" /PCBSD/xorg-gui/settings/alias.txt >/dev/null 2>/dev/null
+grep "^${DRIVER}:" /PCBSD/xorg-gui/settings/alias.txt >/dev/null 2>/dev/null
 if [ "$?" = "0" ]
 then
-  DRIVER=`cat /PCBSD/xorg-gui/settings/alias.txt | grep "${DRIVER}:" | cut -d ":" -f 2`
+  DRIVER=`cat /PCBSD/xorg-gui/settings/alias.txt | grep "^${DRIVER}:" | cut -d ":" -f 2`
   export DRIVER
 else
   echo "Warning: Selected driver not found in alias.txt file..."



More information about the Commits mailing list