1 #!/bin/sh 2 # 3 # $NetBSD: raidframe,v 1.3 2000/05/13 08:45:08 lukem Exp $ 4 # 5 6 # PROVIDE: disks 7 8 . /etc/rc.subr 9 10 name="raidframe" 11 start_cmd="raidframe_start" 12 stop_cmd=":" 13 14 raidframe_start() 15 { 16 # Configure raid devices. 17 # 18 for dev in 0 1 2 3; do 19 if [ -f /etc/raid$dev.conf ]; then 20 raidctl -c /etc/raid$dev.conf raid$dev 21 fi 22 done 23 } 24 25 load_rc_config $name 26 run_rc_command "$1" 27