#!/bin/sh
/usr/X11R6/bin/sessreg -d -w /var/log/wtmp -u /var/run/utmp -l $DISPLAY $USER

/usr/X11R6/bin/xsetroot -solid black

SETUPPID=`pidof IBMSetup`
if [ -n "$SETUPPID" ]; then
        killall -w IBMSetup

fi
killall -w gdm
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
#if [ -r /etc/X11/gdm/gdm.conf -a -n "`grep "AutomaticLogin=" /etc/X11/gdm/gdm.conf | sed 's/^AutomaticLogin=//'`" ]; then

   # This machine has an "automatic login" configuration. Since gdm2.2+ only
   # automatically logs in on the first login after boot, send a signal to
   # the gdm process so it will restart and do another automatic login.
#   kill `cat /var/run/gdm.pid`
#fi
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------



