head	1.3;
access;
symbols
	RELENG_5_5_0_RELEASE:1.2
	RELENG_5_5:1.2.0.14
	RELENG_5_5_BP:1.2
	RELENG_5_4_0_RELEASE:1.2
	RELENG_5_4:1.2.0.12
	RELENG_5_4_BP:1.2
	RELENG_5_3_0_RELEASE:1.2
	RELENG_5_3:1.2.0.10
	RELENG_5_3_BP:1.2
	RELENG_5:1.2.0.8
	RELENG_5_BP:1.2
	RELENG_5_2_1_RELEASE:1.2
	RELENG_5_2_0_RELEASE:1.2
	RELENG_5_2:1.2.0.6
	RELENG_5_2_BP:1.2
	RELENG_5_1_0_RELEASE:1.2
	RELENG_5_1:1.2.0.4
	RELENG_5_1_BP:1.2
	RELENG_5_0_0_RELEASE:1.2
	RELENG_5_0:1.2.0.2
	RELENG_5_0_BP:1.2
	head_20020621:1.1.1.2
	head_20010615:1.1.1.1
	NETBSD:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2005.06.06.02.51.26;	author obrien;	state dead;
branches;
next	1.2;

1.2
date	2002.06.13.22.14.36;	author gordon;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.16.07.16.14;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.06.16.07.16.14;	author obrien;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2002.06.21.19.07.21;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Remove RCng files that were brought in from NetBSD, but we ended up not
using them (or did and no longer do).
@
text
@#!/bin/sh
#
# $NetBSD: raidframe,v 1.6 2002/01/27 14:16:33 lukem Exp $
# $FreeBSD: src/etc/rc.d/raidframe,v 1.2 2002/06/13 22:14:36 gordon Exp $
#

# PROVIDE: disks

. /etc/rc.subr

name="raidframe"
start_cmd="raidframe_start"
stop_cmd=":"

raidframe_start()
{
	# Configure non-auto-configured raid devices.
	# Ensure order by globbing raid[0-9].conf before raid[0-9][0-9].conf.
	#
	for cfg in /etc/raid[0-9].conf /etc/raid[0-9][0-9].conf ; do
		[ ! -f $cfg ] && continue
		dev=${cfg##*/}
		dev=${dev%%.conf}
		raidctl -c $cfg $dev
	done

	# Initiate parity/mirror reconstruction as needed, in the background.
	#
	(
		for dev in `sysctl -n hw.disknames`; do
			case $dev in
			raid[0-9]*)
				raidctl -P $dev
				;;
			esac
		done
	) &
}

load_rc_config $name
run_rc_command "$1"
@


1.2
log
@Merge in all the changes that Mike Makonnen has been maintaining for a
while. This is only the script pieces, the glue for the build comes next.

Submitted by:	Mike Makonnen <makonnen@@pacbell.net>
Reviewed by:	silence on -current and -hackers
Prodded by:	rwatson
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.1
log
@Initial revision
@
text
@d3 2
a4 1
# $NetBSD: raidframe,v 1.4 2000/05/16 16:54:33 oster Exp $
d17 1
a17 1
	# Configure raid devices.
d27 1
a27 5
	# Initiate parity/mirror reconstruction as needed.
	# Backgrounded, and sequentially ordered.
	#
	# XXX:	this currently doesn't work for autoconfigured raid devices
	#	that don't have a corresponding raidN.conf
d30 6
a35 5
		for cfg in /etc/raid[0-9].conf /etc/raid[0-9][0-9].conf ; do
			[ ! -f $cfg ] && continue
			dev=${cfg##*/}
			dev=${dev%%.conf}
			raidctl -P $dev
@


1.1.1.1
log
@Import the NetBSD 1.5 RC system.

Note that `rc' and `rc.shutdown' could not be imported because we already
have files with those names.
@
text
@@


1.1.1.2
log
@Sync with NetBSD's mainline.
@
text
@d3 1
a3 1
# $NetBSD: raidframe,v 1.5 2000/11/17 05:43:46 lukem Exp $
d16 1
a16 1
	# Configure non-auto-configured raid devices.
d26 5
a30 1
	# Initiate parity/mirror reconstruction as needed, in the background.
d33 5
a37 6
		for dev in `sysctl -n hw.disknames`; do
			case $dev in
			raid[0-9]*)
				raidctl -P $dev
				;;
			esac
@

