#!/bin/sh
# $FreeBSD: ports/x11/gdm/files/gdm.sh.in,v 1.8 2005/12/31 19:59:22 marcus Exp $

# PROVIDE: gdm
# REQUIRE: LOGIN cleanvar moused
#
# Add the following to /etc/rc.conf to start GDM at boot time:
#
# gdm_enable="YES"
#

gdm_enable=${gdm_enable-"NO"}

. /etc/rc.subr

name=gdm
rcvar=`set_rcvar`
command="/usr/X11R6/sbin/${name}"
pidfile="/var/run/${name}.pid"
procname="/usr/X11R6/sbin/gdm-binary"

load_rc_config ${name}
run_rc_command "$1"
