Split fsck during boot into two phases. Check the root file system
[netbsd-mini2440.git] / etc / rc.d / raidframe
blob763e605ecc7a18f94e1ab25ff5be1a8cbe0966a7
1 #!/bin/sh
3 # $NetBSD: raidframe,v 1.9 2004/08/13 18:08:03 mycroft Exp $
6 # PROVIDE: raidframe
7 # BEFORE: DISKS
9 $_rc_subr_loaded . /etc/rc.subr
11 name="raidframe"
12 rcvar=$name
13 start_cmd="raidframe_start"
14 stop_cmd=":"
16 raidframe_start()
18 # Configure non-auto-configured raid devices.
19 # Ensure order by globbing raid[0-9].conf before raid[1-9][0-9].conf.
21 for cfg in /etc/raid[0-9].conf /etc/raid[1-9][0-9].conf ; do
22 [ ! -f $cfg ] && continue
23 dev=${cfg##*/}
24 dev=${dev%%.conf}
25 raidctl -c $cfg $dev
26 done
29 load_rc_config $name
30 run_rc_command "$1"