xautoconfig()

Thomas Glanzmann sithglan at stud.uni-erlangen.de
Tue Nov 12 06:42:59 CET 2002


On Mon, Nov 11, 2002 at 03:31:47PM -0500, Mark Hedges wrote:
> #!/usr/bin/perl
[cut]

Nice one ... we at the University of Erlangen do the following to configure X
...

we let grep cfengine through /proc/pci

 # Autoconfigure classes
 matrox   = ( "/bin/grep -q 'MGA' /proc/pci" )
 tnt2     = ( "/bin/grep -q 'TnT2' /proc/pci" )
 permedia = ( "/bin/grep -q 'Permedia 2' /proc/pci" )
 geforce2 = ( "/bin/grep -q 'GeForce2 Ultra' /proc/pci" )
 geforce4 = ( "/bin/grep -q 'GeForce 4' /proc/pci" )
 geforce  = ( "/bin/grep -q 'GeForce' /proc/pci" )
 ati      = ( "/bin/grep -q 'Rage 128' /proc/pci" )

And then we have the following in editfiles ...


 matrox::

  { /etc/X11/wdm/Xservers
  AutoCreate
  EmptyEntireFilePlease
  AppendIfNoSuchLine ':0 local /usr/X11R6/bin/X vt2 -layout Layout_Matrox -dpi 75'
#                                                   ~~~~~~~~~~~~~~~~~~~~~
  }

 permedia::

  { /etc/X11/wdm/Xservers
  AutoCreate
  EmptyEntireFilePlease
  AppendIfNoSuchLine ':0 local /usr/X11R6/bin/X vt2 -layout Layout_Permedia -dpi 75'
#                                                   ~~~~~~~~~~~~~~~~~~~~~~~
  }

If you want a copy of our XF86Config ... just drop be an eMail ...

Greetings,
	Thomas
--
Thomas Glanzmann  ++49 (0) 9131 85-28725   Department of Computer Science IV 
Martensstrasse 1  D-91058 Erlangen Germany  University of Erlangen-Nuremberg
	       http://wwwcip.informatik.uni-erlangen.de/CIP/



More information about the linux-fai mailing list