aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-03-30 12:31:14 -0400
committerBill Nottingham <notting@redhat.com>2011-03-30 12:31:14 -0400
commitae1353b8528561a41fe82314f3ee010a82e6da7a (patch)
tree681d16e89e1dfce98f0a81f6e239ae2a48096d62 /rc.d
parent537693ee3978120e6259bc568cdce215ccaf72a5 (diff)
downloadinitscripts-ae1353b8528561a41fe82314f3ee010a82e6da7a.tar
initscripts-ae1353b8528561a41fe82314f3ee010a82e6da7a.tar.gz
initscripts-ae1353b8528561a41fe82314f3ee010a82e6da7a.tar.bz2
initscripts-ae1353b8528561a41fe82314f3ee010a82e6da7a.tar.xz
initscripts-ae1353b8528561a41fe82314f3ee010a82e6da7a.zip
Don't print errors if mdadm isn't installed. (#692187)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/netfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index 77a0a68d..6bb149f6 100755
--- a/rc.d/init.d/netfs
+++ b/rc.d/init.d/netfs
@@ -43,8 +43,8 @@ case "$1" in
[ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
[ -n "$NETDEVFSTAB" ] &&
{
- if [ -f /etc/mdadm.conf ]; then
- mdadm -A -s
+ if [ -f /etc/mdadm.conf ] && [ -x /sbin/mdadm ]; then
+ /sbin/mdadm -A -s
fi
if [ -f /etc/multipath.conf ] && [ -x /sbin/multipath ]; then
modprobe dm-multipath >/dev/null 2>&1