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 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