aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnson <jbj@redhat.com>1998-09-16 17:27:12 +0000
committerJeff Johnson <jbj@redhat.com>1998-09-16 17:27:12 +0000
commite390766a0cd0cce8ad533d3c8672abcfa15e4c76 (patch)
treeb1dc83e461e7a67e2d99fe3191d6ae6521513a0b
parent50bd268897361f636ac23af5b05a62f3b06a8bcb (diff)
downloadinitscripts-e390766a0cd0cce8ad533d3c8672abcfa15e4c76.tar
initscripts-e390766a0cd0cce8ad533d3c8672abcfa15e4c76.tar.gz
initscripts-e390766a0cd0cce8ad533d3c8672abcfa15e4c76.tar.bz2
initscripts-e390766a0cd0cce8ad533d3c8672abcfa15e4c76.tar.xz
initscripts-e390766a0cd0cce8ad533d3c8672abcfa15e4c76.zip
Raid startup.
-rwxr-xr-xrc.d/rc.sysinit26
1 files changed, 26 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 85a095c7..220f5191 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -157,6 +157,32 @@ if [ -x /sbin/kerneld -a -n "$USEMODULES" ]; then
fi
fi
+# Add raid devices
+if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidstart ]; then
+ echo "Starting up RAID devices."
+ raidstart -a
+
+ rc=$?
+
+ # A non-zero return means there were problems.
+ if [ $rc -gt 0 ]; then
+ echo
+ echo
+ echo "*** An error occurred during the RAID startup"
+ echo "*** Dropping you to a shell; the system will reboot"
+ echo "*** when you leave the shell."
+
+ PS1="(RAID Repair) \#"; export PS1
+ sulogin
+
+ echo "Unmounting file systems"
+ umount -a
+ mount -n -o remount,ro /
+ echo "Automatic reboot in progress."
+ reboot
+ fi
+fi
+
# Check filesystems
if [ ! -f /fastboot ]; then
echo "Checking filesystems."