NetBSD/etc/rc.d/raidframe

27 lines
377 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: raidframe,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $
#
# PROVIDE: raidframe
. /etc/rc.subr
. /etc/rc.conf
name="raidframe"
start_cmd="raidframe_start"
stop_cmd=":"
raidframe_start()
{
# Configure raid devices.
#
for dev in 0 1 2 3; do
if [ -f /etc/raid$dev.conf ]; then
raidctl -c /etc/raid$dev.conf raid$dev
fi
done
}
run_rc_command "$1"