#!/bin/sh
# 
# $OpenBSD: Xstartup.cpp,v 1.2 2007/08/05 19:37:40 matthieu Exp $
#
# Register a login (derived from GiveConsole as follows:)
#
if [ -f /etc/nologin ]; then
        /usr/X11R6/bin/xmessage -file /etc/nologin -timeout 30 -center
        exit 1
fi
/usr/X11R6/bin/sessreg  -a -w "/var/log/wtmp" -u "/var/run/utmp" 	-x /etc/X11/xdm/Xservers -l $DISPLAY -h "" $USER
