#!/usr/bin/sh ##################################################### ### X Window System Starting-Configuration Script ### ##################################################### ### ### This shell script sets initial X11 clients. It is ### passed as a parameter to xinit and run by xinit along with the ### X11 server. When this script terminates the X Window System will ### terminate. ### ### 1) Standard output and error output for programs started by this script ### are redirected to $HOME/.x11startlog. This avoids output to the screen ### that would detract from the window display. If an error occurs starting ### X11, the logfile would be a good place to look for a clue to the problem. ### You can view the file by typing ``more .x11startlog'' at the command ### prompt of your home directory. Your $HOME directory must be writeable ### otherwise the output is thrown away. ### ### @(#) $Revision: 1.3 $ if (cat /dev/null >$HOME/.x11startlog) then exec >$HOME/.x11startlog 2>$HOME/.x11startlog else exec >/dev/null 2>/dev/null fi ### if there was no $HOME/.Xdefaults, $doxrdb is set to ### 'xrdb -nocpp -load /usr/lib/X11/sys.Xdefaults' ### otherwise this is a nop. The x11start script sets ### the doxrdb variable $doxrdb unset doxrdb ### 2) The following X clients start as part of the initial window ### system environment. Users can change or add to these default clients ### to set up a custom environment. All clients started in this script ### should be run in the background. ### ### x11start can pass global parameters to this script. For example, ### it can pass a ``hostname:display.screen'' for all clients to use. ### Another use would be to pass an additional parameter that ### all of the clients accept, such as "-xrm *foreground blue". If the ### user does not pass in a parameter, '$@' is null. mwm $@ & # Start the Motif-based Window Manager. sleep 5 # Allow time for initializing mwm before starting other clients. ### See the hpterm(1) man page for instructions on how to authorize ### your hpterm to catch messages written to /dev/console. If ### you do this then random stuff written to /dev/console will ### not mess up your screen. hpterm -C -geometry 80x24+1+1 $@ & ### Add client commands below, one command per line. ### End each command line with an ampersand (&). ### 3) The following "wait" call ensures that all terminated ### child processes are cleaned up (i.e., no processes are ### left around). wait ### 4) All X clients started by this script have terminated at this point. ### Now sleep forever (if this script terminates the window system will ### be terminated). When the window system is terminated with ### [Shift][CTRL][Reset] this script will be killed. exec sleep 2000000000 ### The window system is terminated when this script is terminated. ###