#!/bin/ksh
#
# ident "@(#)utgdmconfigpath.ksh	1.1	08/05/27 SMI"
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#


if [ "`uname -s`" = "SunOS" ]; then
    GDM_DIR=/etc/X11/gdm/
else
    GDM_PATH=`rpm -ql "gdm" | grep "custom.conf"`
    if [ $? != 0 ]; then
	print -u2 "Cannot determine GDM install directory"
	exit 1;
    fi
    GDM_DIR=${GDM_PATH%%custom\.conf*}
fi
print $GDM_DIR
exit 0
