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