Thank you Sun Managers, for your quick and helpful answers!
First, the original question:
=>I need to be able to determine the default frame buffer on any of our Sun4c hosts
=>eg: (bwtwo, cgthree, cgsix, etc.) while in a startup shell script so that the
=>proper environment variable can be set for the application. Maybe because it's
=>Friday but, I cannot find a (simple) method to accomplish this. Could someone provide
=>me with some ideas on how to do this?? Many thanks in advance.
Two responses stand out as meeting our needs the best, (KISSysadmin) though many of you
supplied very good programs to accomplish the same.
Solution #1 - is the command "constype" which is
included with X11R4/5 source and (even) OpenWindows3. If you are still running
sunview or do not have X11, then you will need either Solution #2 or one
the programs sent to me.
Solution #2 - is a nifty shell script from Casper Dik <email@example.com>
# Probe all frame buffers.
for dev in /dev/cg* /dev/gt* /dev/gpone* /dev/bw*
if ( < $dev ) 2>/dev/null
# This is the device.
Again, many thanks to all of the following Sun Managers;
Institute for Advanced Study
South Olden Lane
Princeton, NJ 08540
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:47 CDT