#!/bin/sh

case "${DISPLAY}" in
"") if [ ! -f $HOME/.xinitrc ]
    then
	echo "You have not yet set up xinit for your account"
	echo "xinit is being set up for you now..."
	cp /usr/X/lib/xinit/xinitrc $HOME/.xinitrc
    fi
    PATH=/usr/X/bin:$PATH export PATH
    ;;
esac

exec /usr/X/bin/xinit ${1+"$@"}
