diff options
Diffstat (limited to 'libexec/rc/rc.d/ccd')
-rwxr-xr-x | libexec/rc/rc.d/ccd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/ccd b/libexec/rc/rc.d/ccd new file mode 100755 index 000000000000..5f2427e4beb0 --- /dev/null +++ b/libexec/rc/rc.d/ccd @@ -0,0 +1,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" |