From 7455471cefef4455fe65ecdbe49916bee6a44b68 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 30 Mar 2011 12:31:14 -0400 Subject: Don't print errors if mdadm isn't installed. (#692187) --- rc.d/init.d/netfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d') 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 -- cgit v1.2.1