#!/bin/sh
#
# Note that any setup should come before the sessreg command as
# iterate over the helpers directory then execute last helper
# that must be 'exec'ed for the pid to be correct (sessreg uses the parent
# pid)
#
# Note that output goes into the .xsession-errors file for easy debugging
#
# ident "@(#)PreSessionDefault.sh	1.8 09/07/31 SMI"
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH:/bin:/usr/bin"

for i in /etc/opt/SUNWut/gdm/SunRayPreSession/helpers/*
do
	if [ -x $i ]; then
	    . $i
	fi
done

exec /etc/opt/SUNWut/gdm/SunRayPreSession/SessReg

exit 0
