1 #!/bin/sh 2 # 3 # $NetBSD: raidframe,v 1.9 2004/08/13 18:08:03 mycroft Exp $ 4 # 5 6 # PROVIDE: disks 7 8 $_rc_subr_loaded . /etc/rc.subr 9 10 name="raidframe" 11 rcvar=$name 12 start_cmd="raidframe_start" 13 stop_cmd=":" 14 15 raidframe_start() 16 { 17 # Configure non-auto-configured raid devices. 18 # Ensure order by globbing raid[0-9].conf before raid[1-9][0-9].conf. 19 # 20 for cfg in /etc/raid[0-9].conf /etc/raid[1-9][0-9].conf ; do 21 [ ! -f $cfg ] && continue 22 dev=${cfg##*/} 23 dev=${dev%%.conf} 24 raidctl -c $cfg $dev 25 done 26 } 27 28 load_rc_config $name 29 run_rc_command "$1" 30