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