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