Module Name: src
Committed By: christos
Date: Mon Nov 1 14:41:11 UTC 2010
Modified Files:
src/etc/rc.d: cgd
Log Message:
add a cgd_stop function
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/etc/rc.d/cgd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.d/cgd
diff -u src/etc/rc.d/cgd:1.7 src/etc/rc.d/cgd:1.8
--- src/etc/rc.d/cgd:1.7 Fri Sep 11 14:18:03 2009
+++ src/etc/rc.d/cgd Mon Nov 1 10:41:11 2010
@@ -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
@@ -23,5 +23,13 @@
fi
}
+cgd_stop()
+{
+ if [ -f /etc/cgd/cgd.conf ]; then
+ print_rc_normal "Unconfiguring CGD devices."
+ cgdconfig -U
+ fi
+}
+
load_rc_config $name
run_rc_command "$1"