1#!/bin/sh
2#
3# $NetBSD: raidframeparity,v 1.3 2004/10/11 15:00:51 christos Exp $
4#
5
6# PROVIDE: raidframeparity
7# REQUIRE: quota
8
9$_rc_subr_loaded . /etc/rc.subr
10
11name="raidframeparity"
12start_cmd="raidframeparity_start"
13stop_cmd=":"
14
15raidframeparity_start()
16{
17	# Initiate parity/mirror reconstruction as needed, in the background.
18	#
19	(
20		for dev in $(sysctl -n hw.disknames); do
21			case $dev in
22			raid[0-9]*)
23				raidctl -P $dev
24				;;
25			esac
26		done
27	) &
28}
29
30load_rc_config $name
31run_rc_command "$1"
32