diff options
author | Bill Nottingham <notting@redhat.com> | 2011-03-30 12:31:14 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-04-12 09:54:45 -0400 |
commit | 96d924cfd7cf001a06f7c37d751e166fc9778e32 (patch) | |
tree | c902d5c521588897d67d83ea7f677209bcbc4783 /rc.d | |
parent | afbb6d762e8a83d749fbfe7637824d36e605581b (diff) | |
download | initscripts-96d924cfd7cf001a06f7c37d751e166fc9778e32.tar initscripts-96d924cfd7cf001a06f7c37d751e166fc9778e32.tar.gz initscripts-96d924cfd7cf001a06f7c37d751e166fc9778e32.tar.bz2 initscripts-96d924cfd7cf001a06f7c37d751e166fc9778e32.tar.xz initscripts-96d924cfd7cf001a06f7c37d751e166fc9778e32.zip |
Don't print errors if mdadm isn't installed. (#692187)
Diffstat (limited to 'rc.d')
-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 8d9854fb..94f569dc 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 |