Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d add a cgd_stop function
details: https://anonhg.NetBSD.org/src/rev/eb473de846c0
branches: trunk
changeset: 758310:eb473de846c0
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 01 14:41:11 2010 +0000
description:
add a cgd_stop function
diffstat:
etc/rc.d/cgd | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r fad0e26675c8 -r eb473de846c0 etc/rc.d/cgd
--- a/etc/rc.d/cgd Mon Nov 01 14:04:02 2010 +0000
+++ b/etc/rc.d/cgd Mon Nov 01 14:41:11 2010 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index