ccd revision 1.7
1#!/bin/sh 2# 3# $NetBSD: ccd,v 1.7 2011/04/05 02:52:27 enami Exp $ 4# 5 6# PROVIDE: ccd 7# BEFORE: DISKS 8# KEYWORD: shutdown 9 10$_rc_subr_loaded . /etc/rc.subr 11 12name="ccd" 13rcvar=$name 14start_cmd="ccd_start" 15stop_cmd="ccd_stop" 16 17ccd_start() 18{ 19 if [ -f /etc/ccd.conf ]; then 20 echo "Configuring CCD devices." 21 ccdconfig -C 22 fi 23} 24 25ccd_stop() 26{ 27 if [ -f /etc/ccd.conf ]; then 28 echo "Unconfiguring CCD devices." 29 ccdconfig -U 30 fi 31} 32 33load_rc_config $name 34run_rc_command "$1" 35