summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>1999-05-26 08:40:01 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>1999-05-26 08:40:01 +0000
commitff8e9a4356e55ed142306c3a375fa280800abc86 (patch)
tree384476b513f8efc907c1d764dee7a0b8969bf9c1
parent49bb8f5a06a5cbf551df855442fc815a5011ad08 (diff)
Configure raid devices at boot (from NetBSD, ok by niklas@).
-rw-r--r--etc/rc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 284028b92a0..368b6145472 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.97 1999/05/24 18:00:05 millert Exp $
+# $OpenBSD: rc,v 1.98 1999/05/26 08:40:00 jakob Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -21,6 +21,13 @@ if [ -f /etc/ccd.conf ]; then
ccdconfig -C
fi
+# 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
+
if [ -e /fastboot ]; then
echo "Fast boot: skipping disk checks."
elif [ $1x = autobootx ]; then