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