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