Annotation of src/etc/rc.d/cgd, Revision 1.8
1.1 elric 1: #!/bin/sh
2: #
1.8 ! christos 3: # $NetBSD: cgd,v 1.7 2009/09/11 18:18:03 apb Exp $
1.1 elric 4: #
5:
1.6 joerg 6: # PROVIDE: cgd
7: # REQUIRE: rndctl
8: # BEFORE: DISKS
1.7 apb 9: # KEYWORD: interactive
1.1 elric 10:
1.3 mycroft 11: $_rc_subr_loaded . /etc/rc.subr
1.1 elric 12:
13: name="cgd"
1.2 wiz 14: rcvar=$name
1.1 elric 15: start_cmd="cgd_start"
1.5 tv 16: stop_cmd=":"
1.1 elric 17:
18: cgd_start()
19: {
20: if [ -f /etc/cgd/cgd.conf ]; then
1.7 apb 21: print_rc_normal "Configuring CGD devices."
1.1 elric 22: cgdconfig -C
23: fi
24: }
25:
1.8 ! christos 26: cgd_stop()
! 27: {
! 28: if [ -f /etc/cgd/cgd.conf ]; then
! 29: print_rc_normal "Unconfiguring CGD devices."
! 30: cgdconfig -U
! 31: fi
! 32: }
! 33:
1.1 elric 34: load_rc_config $name
35: run_rc_command "$1"
CVSweb <webmaster@jp.NetBSD.org>