[BACK]Return to cgd CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

File: [cvs.NetBSD.org] / src / etc / rc.d / cgd (download)

Revision 1.5.36.1, Wed May 13 19:18:03 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.5: +4 -2 lines

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

#!/bin/sh
#
# $NetBSD: cgd,v 1.5.36.1 2009/05/13 19:18:03 jym Exp $
#

# PROVIDE: cgd
# REQUIRE: rndctl
# BEFORE:  DISKS

$_rc_subr_loaded . /etc/rc.subr

name="cgd"
rcvar=$name
start_cmd="cgd_start"
stop_cmd=":"

cgd_start()
{
	if [ -f /etc/cgd/cgd.conf ]; then
		echo "Configuring CGD devices."
		cgdconfig -C
	fi
}

load_rc_config $name
run_rc_command "$1"