NetBSD/etc/rc.d/ccd
wiz 4f30393de2 Allow ccd autoconfiguration to be turned off (by setting ccd=NO in
/etc/rc.conf; default is YES.)
Suggested by elric, ok'ed by lukem.
2003-03-19 08:54:00 +00:00

25 lines
301 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: ccd,v 1.4 2003/03/19 08:54:00 wiz Exp $
#
# PROVIDE: disks
. /etc/rc.subr
name="ccd"
rcvar=$name
start_cmd="ccd_start"
stop_cmd=":"
ccd_start()
{
if [ -f /etc/ccd.conf ]; then
echo "Configuring CCD devices."
ccdconfig -C
fi
}
load_rc_config $name
run_rc_command "$1"