cgd revision 1.4
1#!/bin/sh 2# 3# $NetBSD: cgd,v 1.4 2005/03/02 12:14:47 tv Exp $ 4# 5 6# PROVIDE: disks 7# KEYWORD: shutdown 8 9$_rc_subr_loaded . /etc/rc.subr 10 11name="cgd" 12rcvar=$name 13start_cmd="cgd_start" 14stop_cmd="cgd_stop" 15 16cgd_start() 17{ 18 if [ -f /etc/cgd/cgd.conf ]; then 19 echo "Configuring CGD devices." 20 cgdconfig -C 21 fi 22} 23 24cgd_stop() 25{ 26 if [ -f /etc/cgd/cgd.conf ]; then 27 echo "Unconfiguring CGD devices." 28 cgdconfig -U 29 fi 30} 31 32load_rc_config $name 33run_rc_command "$1" 34