How do I deal with multiple hardware setups?
Eric Eisenhart
eric at eisenhart.com
Wed Oct 31 23:40:32 PST 2001
On Wed, Oct 31, 2001 at 09:05:31PM -0800, Lincoln Peters wrote:
> >Very very carefully...
> >
> >I *think* you could:
> >1) Make an XF86Config-4 for the GX1 and copy it to
> >/etc/X11/XF86Config-4.gx1
> >2) Make an XF86Config-4 for the GX110 and copy it to
> > /etc/X11/XF86Config-4.gx110
> >3) in /etc/init.d/rc.local put something like:
> >
> >if /sbin/lspci | grep "Intel Corporation 82810E"; then
> > cp /etc/X11/XF86Config-4.gx110 /etc/X11/XF86Config-4
> >else
> > cp /etc/X11/XF86Config-4.gx1 /etc/X11/XF86Config-4
> >fi
>
> It looks to me like every time a workstation started up, it would overwrite
> the XF86Config-4 file with whichever version was appropriate for itself.
> Wouldn't that confuse all of the other workstations whenever they (re)start
> X?
Sorry, I was confused, I guess... I was thinking in terms of cloned
machines, not in terms of machines all mounting the exact same filesystem...
You want a graphical login on these, like xdm or gdm?
Okay...
Seriously try this:
put the following in /usr/X11R6/bin/X.gx:
#!/bin/sh
if /sbin/lspci | grep "Intel Corporation 82810E"; then
/usr/X11R6/bin/X -xf86config /etc/X11/XF86Config-4.gx110
else
/usr/X11R6/bin/X -xf86config /etc/X11/XF86Config-4.gx1
fi
Hmmm...
Or maybe in the startup scripts elsewhere (like inside /etc/X11/prefdm) put:
if /sbin/lspci | grep "Intel Corporation 82810E"; then
export XF86CONFIG=XF86Config-4.gx110
else
export XF86CONFIG=XF86Config-4.gx1
fi
(/etc/X11/prefdm is the script that fires up your choice of display
managers, and the display managers are what actually will fire up X, based
on what's in /etc/X11/xdm/Xservers)
--
Eric Eisenhart Freedom is slavery. http://eric.eisenhart.com/
^ ICQ#: 48217244 Ignorance is strength. eric-dot-sig at eisenhart.com
/e\ Perl&SQL Coder War is peace. IRC Nicks: Falsch Freiheit
--- -- George Orwell
More information about the talk
mailing list