summaryrefslogtreecommitdiff
path: root/config/Xstartup.in
blob: a1da63c8094329f3ef8da3d0a30a8d8136a6370f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# 
# $OpenBSD: Xstartup.in,v 1.3 2018/07/15 09:05:17 matthieu Exp $
#
prefix="@prefix@"
exec_prefix="@exec_prefix@"

if [ -f /etc/nologin ]; then
        /usr/X11R6/bin/xmessage -file /etc/nologin -timeout 30 -center
        exit 1
fi
exec @bindir@/sessreg  -a -w @WTMP_FILE@ -u @UTMP_FILE@ \
	-x @XENODMCONFIGDIR@/Xservers -l $DISPLAY -h "" $USER