summaryrefslogtreecommitdiff
path: root/etc/rc.d/raidframeparity
blob: 025bbc1d47cade55d45af6cf9b3d045c7a69597d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
# $NetBSD: raidframeparity,v 1.1 2002/09/03 15:35:55 abs Exp $
#

# REQUIRE: quota

. /etc/rc.subr

name="raidframeparity"
start_cmd="raidframeparity_start"
stop_cmd=":"

raidframeparity_start()
{
	# 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"