#!/bin/sh
######################################################################
#
#   Xfailsafe_tooltalk_error
#
#   Common Desktop Environment
#
#   Configuration file for the Login Manager
#
#        ************** DO NOT EDIT THIS FILE **************
#
#   /usr/dt/config/Xfailsafe_tooltalk_error
#   is a factory-default file and will
#   be unconditionally overwritten upon subsequent installation.
#
######################################################################
#
#
#  This file contains commands to invoke a simple session for repairs of
#  a misconfigured network.
#
#  All clients should be run in the background with the exception of the
#  last client.  When the last client is terminated by the user, the session
#  will be terminated and the login screen will be presented.
#
#  This simple session consists of a window manager, warning dialog
#  about not being able to start the tooltalk message server and a terminal
#  emulator.

#
#  Global variables
#
   XDIR=/usr/bin/X11
   DELAY=2
   DTDIR=/usr/dt/bin

#
#  Set background to default weave.
#
   $XDIR/xsetroot -default &

if [ "$LC_MESSAGES" = "C@lft" ]
then
  unset LC_MESSAGES
fi

#
#  Start a window manager.
#
   $XDIR/mwm &
   sleep $DELAY

   /usr/dt/config/Xsession.d/0050.dtxmodmap

#
#  Start a terminal emulator
#
$DTDIR/dtterm -geometry 80x24+300+300 -ls -xrm '*ttyModes:erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@ susp ^Z' &

# Display the "Tooltalk Could Not Be Started" warning dialog (also
# the session terminator client)
$DTDIR/dtsession_tooltalk_error
