Files
cdesktop/cde/contrib/rc/freebsd/dtlogin

35 lines
664 B
Bash
Executable File

#!/bin/sh
# Script to start dtlogin upon system boot for FreeBSD
# Instructions:
# Put this script in /usr/local/etc/rc.d (owned and read/execute by root.)
# Use dtlogin_enable="YES" in /etc/rc.conf to enable dtlogin startup.
#
# Author: Douglas Carmichael <dcarmich@dcarmichael.net>
#
# Define the services that dtlogin requires to start.
#
# PROVIDE: dtlogin
# REQUIRE: DAEMON moused rpcbind hald polkitd
. /etc/rc.subr
name=dtlogin
rcvar=dtlogin_enable
command="/usr/dt/bin/dtlogin"
command_args="&"
dtlogin_prestart()
{
if ! checkyesno dtlogin_enable ; then
return 0
fi
echo "Starting ${name}."
}
load_rc_config $name
run_rc_command "$1"