summaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/ccd
blob: 5f2427e4beb015329b68dd0ff5ec937c0203d759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
#
#

# PROVIDE: disks
# KEYWORD: nojail

. /etc/rc.subr

name="ccd"
desc="Concatenated disks setup"
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

# doesn't make sense to run in a svcj: nojail keyword
ccd_svcj="NO"

run_rc_command "$1"