Mon Nov 1 14:41:11 2010 UTC ()
add a cgd_stop function


(christos)
diff -r1.7 -r1.8 src/etc/rc.d/cgd

cvs diff -r1.7 -r1.8 src/etc/rc.d/cgd (expand / switch to context diff)
--- src/etc/rc.d/cgd 2009/09/11 18:18:03 1.7
+++ src/etc/rc.d/cgd 2010/11/01 14:41:11 1.8
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: cgd,v 1.7 2009/09/11 18:18:03 apb Exp $
+# $NetBSD: cgd,v 1.8 2010/11/01 14:41:11 christos Exp $
 #
 
 # PROVIDE: cgd
@@ -20,6 +20,14 @@
 	if [ -f /etc/cgd/cgd.conf ]; then
 		print_rc_normal "Configuring CGD devices."
 		cgdconfig -C
+	fi
+}
+
+cgd_stop()
+{
+	if [ -f /etc/cgd/cgd.conf ]; then
+		print_rc_normal "Unconfiguring CGD devices."
+		cgdconfig -U
 	fi
 }