I have done this in the /etc/rc.d scripts by doing a grep on /proc/pci
and look for the video card I have in my docking station. You should
make a copy of the /proc/pci file in docked and undocked states to
see the difference you can key on to tell the difference automatically.
--
_______________________________________________________________________
Paul Raines [EMAIL PROTECTED] 650-926-2369
Stanford Linear Accelerator BABAR Group Software Team
http://www.slac.stanford.edu/~raines/index.html <====== PGP public key