Author: alexander
Date: 2006-02-22 05:09:08 -0700 (Wed, 22 Feb 2006)
New Revision: 1415

Added:
   branches/udev_update/packages/udev/detect-video
Log:
Added missing file

Added: branches/udev_update/packages/udev/detect-video
===================================================================
--- branches/udev_update/packages/udev/detect-video                             
(rev 0)
+++ branches/udev_update/packages/udev/detect-video     2006-02-22 12:09:08 UTC 
(rev 1415)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+SUB_VENDOR_ID=${PCI_SUBSYS_ID%:*}
+SUB_DEVICE_ID=${PCI_SUBSYS_ID#*:}
+
+VENDOR_ID=${PCI_ID%:*}
+DEVICE_ID=${PCI_ID#*:}
+
+X_DRIVER=`/usr/bin/getconfig.pl -b "0x$SUB_DEVICE_ID" -c 0x0300 \
+       -d "0x$DEVICE_ID" -s "0x$SUB_VENDOR_ID" -v "0x$VENDOR_ID" 2>/dev/null`
+if [ -n "$X_DRIVER" ] ; then
+       echo "Using \"$X_DRIVER\" as a video driver" >/dev/console
+       sed -i -e "s/vesa/$X_DRIVER/" /etc/X11/xorg.conf
+fi


Property changes on: branches/udev_update/packages/udev/detect-video
___________________________________________________________________
Name: svn:executable
   + *

-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to