summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-11-30 15:24:47 +0100
committerHarald Hoyer <harald@redhat.com>2009-11-30 15:24:47 +0100
commit938dbad1e8af065f6f9936e6a4823fa17bd0b8ae (patch)
treeba22f3e03f8dedbf5fcf361bc12ac1565e94d825
parentff0bfa28d3c2bbf541ca1cbdbdff161948b9cfb6 (diff)
multipath: supress warnings, if multipath not installed on systemHEADmaster
-rwxr-xr-xmodules.d/90multipath/install4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules.d/90multipath/install b/modules.d/90multipath/install
index 26a3fda..f14c58c 100755
--- a/modules.d/90multipath/install
+++ b/modules.d/90multipath/install
@@ -4,7 +4,7 @@ if [[ $hostonly ]]; then
inst /etc/multipath.conf
fi
-if ldd /sbin/multipath |grep -q lib64; then
+if ldd $(which multipath) 2>/dev/null |grep -q lib64; then
LIBDIR="/lib64"
else
LIBDIR="/lib"
@@ -19,7 +19,7 @@ for f in \
/sbin/xdrgetuid \
/sbin/xdrgetprio \
/etc/xdrdevices.conf \
- $(ls $LIBDIR/libmultipath* $LIBDIR/multipath/*) \
+ $(ls $LIBDIR/libmultipath* $LIBDIR/multipath/* 2>/dev/null) \
;do
inst $f
done