#! /sbin/sh
#
#
CONSOLE=/dev/null
DISPLAY=:0
export DISPLAY

/usr/bin/X11/xhost -

/usr/bin/X11/4Dwm -display $DISPLAY -trustedpath > $CONSOLE 2>&1 &

/usr/bin/X11/wait4wm

if [ -f /usr/CMW/CMWbackground ]
then
	/usr/bin/X11/xsetroot \
		-bitmap /usr/CMW/CMWbackground -bg brown -fg pink 
fi

#
# The authentication program.
#
/usr/sbin/xwsh \
	-display $DISPLAY \
	-noscrollbar -nomenu -ut \
	-title "CMW authentication Dialog" \
	-icontitle 'Login' \
	-transient root \
	-e /usr/bin/X11/CMWdialog
