Home | History | Annotate | Line # | Download | only in rc.d
raidframeparity revision 1.1
      1 #!/bin/sh
      2 #
      3 # $NetBSD: raidframeparity,v 1.1 2002/09/03 15:35:55 abs Exp $
      4 #
      5 
      6 # REQUIRE: quota
      7 
      8 . /etc/rc.subr
      9 
     10 name="raidframeparity"
     11 start_cmd="raidframeparity_start"
     12 stop_cmd=":"
     13 
     14 raidframeparity_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 
     29 load_rc_config $name
     30 run_rc_command "$1"
     31