diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 1999-05-26 08:40:01 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 1999-05-26 08:40:01 +0000 |
commit | ff8e9a4356e55ed142306c3a375fa280800abc86 (patch) | |
tree | 384476b513f8efc907c1d764dee7a0b8969bf9c1 | |
parent | 49bb8f5a06a5cbf551df855442fc815a5011ad08 (diff) |
Configure raid devices at boot (from NetBSD, ok by niklas@).
-rw-r--r-- | etc/rc | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |