Home | History | Annotate | Line # | Download | only in rc.d
raidframe revision 1.1
      1  1.1  lukem #!/bin/sh
      2  1.1  lukem #
      3  1.1  lukem # $NetBSD: raidframe,v 1.1 2000/03/10 11:53:24 lukem Exp $
      4  1.1  lukem #
      5  1.1  lukem 
      6  1.1  lukem # PROVIDE: raidframe
      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