diff options
author | Florian La Roche <laroche@redhat.com> | 2002-07-05 09:08:34 +0000 |
---|---|---|
committer | Florian La Roche <laroche@redhat.com> | 2002-07-05 09:08:34 +0000 |
commit | 99e52e22a47427e2deff1b67052ae60236999ce4 (patch) | |
tree | 4be3de040eb5778341431e6c7e30bcbe072c05f5 /rc.d | |
parent | 1450354abb4fd7d0fca991162e8457eb4b196285 (diff) | |
download | initscripts-99e52e22a47427e2deff1b67052ae60236999ce4.tar initscripts-99e52e22a47427e2deff1b67052ae60236999ce4.tar.gz initscripts-99e52e22a47427e2deff1b67052ae60236999ce4.tar.bz2 initscripts-99e52e22a47427e2deff1b67052ae60236999ce4.tar.xz initscripts-99e52e22a47427e2deff1b67052ae60236999ce4.zip |
- rc.sysinit: do not load raid modules unless /etc/raidtab exists
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 684808e5..69800905 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -341,7 +341,8 @@ mount -f /proc -# The root filesystem is now read-write, so we can now log via syslog() directly.. +# The root filesystem is now read-write, so we can now log +# via syslog() directly.. if [ -n "$IN_INITLOG" ]; then IN_INITLOG= fi @@ -354,8 +355,7 @@ fi # Our modutils don't support it anymore, so we might as well remove # the preferred link. -rm -f /lib/modules/preferred -rm -f /lib/modules/default +rm -f /lib/modules/preferred /lib/modules/default if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then # If they aren't using a recent sane kernel, make a link for them if [ ! -n "`uname -r | grep -- "-"`" ]; then @@ -411,12 +411,12 @@ if [ -f /etc/rc.modules ]; then /etc/rc.modules fi -# Add raid devices -if [ ! -f /proc/mdstat ]; then - modprobe md >/dev/null 2>&1 -fi +if [ -f /etc/raidtab ]; then + # Add raid devices + [ -f /proc/mdstat ] || modprobe md >/dev/null 2>&1 +fi +if [ -f /etc/raidtab -a -f /proc/mdstat ]; then -if [ -f /proc/mdstat -a -f /etc/raidtab ]; then echo -n $"Starting up RAID devices: " rc=0 |