diff options
author | Bill Nottingham <notting@redhat.com> | 2011-03-30 12:31:14 -0400 |
---|---|---|
committer | Petr Lautrbach <plautrba@redhat.com> | 2011-04-19 15:44:55 +0200 |
commit | 7455471cefef4455fe65ecdbe49916bee6a44b68 (patch) | |
tree | 8df69d4f26a7e78ee0e45b4575fdd23d43f276d4 /rc.d/init.d/netfs | |
parent | 0bd80773ac039dd87e967db7f6077fa7cf3a8c86 (diff) | |
download | initscripts-7455471cefef4455fe65ecdbe49916bee6a44b68.tar initscripts-7455471cefef4455fe65ecdbe49916bee6a44b68.tar.gz initscripts-7455471cefef4455fe65ecdbe49916bee6a44b68.tar.bz2 initscripts-7455471cefef4455fe65ecdbe49916bee6a44b68.tar.xz initscripts-7455471cefef4455fe65ecdbe49916bee6a44b68.zip |
Don't print errors if mdadm isn't installed. (#692187)
Diffstat (limited to 'rc.d/init.d/netfs')
-rwxr-xr-x | rc.d/init.d/netfs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index a235e464..95fe0296 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 -a -x /sbin/multipath ]; then modprobe dm-multipath >/dev/null 2>&1 |