#!/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.2 04/05/30 SMI"
#

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


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

exec /etc/X11/gdm/SunRayPreSession/SessReg

exit 0
