Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Unconfigure cgd devices on shutdown, so that underl...
details: https://anonhg.NetBSD.org/src/rev/35a79e130c71
branches: trunk
changeset: 574503:35a79e130c71
user: tv <tv%NetBSD.org@localhost>
date: Wed Mar 02 12:14:47 2005 +0000
description:
Unconfigure cgd devices on shutdown, so that underlying layers (i.e.,
RAIDframe) are happier.
diffstat:
etc/rc.d/cgd | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r b879fa19e766 -r 35a79e130c71 etc/rc.d/cgd
--- a/etc/rc.d/cgd Wed Mar 02 12:00:25 2005 +0000
+++ b/etc/rc.d/cgd Wed Mar 02 12:14:47 2005 +0000
@@ -1,16 +1,17 @@
#!/bin/sh
#
-# $NetBSD: cgd,v 1.3 2004/08/13 18:08:03 mycroft Exp $
+# $NetBSD: cgd,v 1.4 2005/03/02 12:14:47 tv Exp $
#
# PROVIDE: disks
+# KEYWORD: shutdown
$_rc_subr_loaded . /etc/rc.subr
name="cgd"
rcvar=$name
start_cmd="cgd_start"
-stop_cmd=":"
+stop_cmd="cgd_stop"
cgd_start()
{
@@ -20,5 +21,13 @@
fi
}
+cgd_stop()
+{
+ if [ -f /etc/cgd/cgd.conf ]; then
+ echo "Unconfiguring CGD devices."
+ cgdconfig -U
+ fi
+}
+
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index