Use KORNSHELL variable instead of /bin/ksh
[oweals/cde.git] / cde / programs / dtlogin / config / Xfailsafe.src
1 XCOMM!/bin/sh
2 XCOMM #####################################################################
3 XCOMM
4 XCOMM   Xfailsafe
5 XCOMM
6 XCOMM   Common Desktop Environment
7 XCOMM
8 XCOMM   Configuration file for the Login Manager
9 XCOMM
10 XCOMM   (c) Copyright 1993, 1994 Hewlett-Packard Company
11 XCOMM   (c) Copyright 1993, 1994 International Business Machines Corp.
12 XCOMM   (c) Copyright 1993, 1994 Sun Microsystems, Inc.
13 XCOMM   (c) Copyright 1993, 1994 Novell, Inc.
14 XCOMM
15 XCOMM        ************** DO NOT EDIT THIS FILE **************
16 XCOMM
17 XCOMM   CDE_INSTALLATION_TOP/config/Xfailsafe is a factory-default file and will
18 XCOMM   be unconditionally overwritten upon subsequent installation.
19 XCOMM   Before making changes to the file, copy it to the configuration 
20 XCOMM   directory, CDE_CONFIGURATION_TOP/config. You must also update the 
21 XCOMM   failsafeClient resource in CDE_CONFIGURATION_TOP/config/Xconfig.
22 XCOMM
23 XCOMM   $XConsortium: Xfailsafe.src /main/5 1996/07/02 11:39:20 mgreess $
24 XCOMM #####################################################################
25 XCOMM
26 XCOMM
27 XCOMM  This file contains commands to invoke a simple session for repairs of
28 XCOMM  a dysfunctional environment. 
29 XCOMM
30 XCOMM  All clients should be run in the background with the exception of the
31 XCOMM  last client.  When the last client is terminated by the user, the session
32 XCOMM  will be terminated and the login screen will be presented.
33 XCOMM
34 #ifdef sun
35 XCOMM  This simple session consists of a single terminal emulator.
36 #else
37 XCOMM  This simple session consists of a window manager and a single terminal 
38 XCOMM  emulator.
39 #endif
40
41 #ifdef sun
42    XDIR=/usr/openwin/bin
43
44    $XDIR/xterm -C -ls
45 #else
46
47 XCOMM
48 XCOMM  Global variables
49 XCOMM
50    XDIR=/usr/bin/X11
51    DELAY=2
52    
53 XCOMM
54 XCOMM  Set background to default weave.
55 XCOMM
56 #if defined(linux)
57    XDIR=/usr/bin
58 #endif
59
60 $XDIR/xsetroot -default &
61
62 #if defined(_AIX) && defined(AIXV4)
63 XCOMM
64 XCOMM  Clear the LFT message locale override if set
65 XCOMM
66 if [ "$LC_MESSAGES" = "C@lft" ]
67 then
68   unset LC_MESSAGES
69 fi
70 #endif
71
72 XCOMM
73 XCOMM  Start a window manager.
74 XCOMM
75    $XDIR/mwm &
76    sleep $DELAY
77
78 #if defined(_AIX) && defined(AIXV4)
79 XCOMM
80 XCOMM  Setup xmodmap
81 XCOMM
82 if [ -x CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap ]
83 then
84    CDE_INSTALLATION_TOP/config/Xsession.d/0050.dtxmodmap
85 fi
86 #endif
87
88 XCOMM
89 XCOMM  Start the terminal emulator (also the session terminator client).
90 XCOMM
91 #if defined (_AIX)
92    $XDIR/aixterm -ls
93 #else
94    $XDIR/xterm -ls
95 #endif
96
97 #endif