# Sets up DISPLAY and enables host access
# Execute in the current shell by typing ". rxinit.sh"

DYN_IPADDR=`getaddr`

if [ -z $DYN_IPADDR ]; then
	echo "Error: Not connected"
	unset DYN_IPADDR
else
	xhost +

	DYN_HOSTNAME=`gethostname $DYN_IPADDR`
	export DISPLAY=$DYN_HOSTNAME:0.0
	echo "DISPLAY set to $DISPLAY"
fi
.
