Use glob for libdir when installing multipath libraries.

Use "/lib*/" not "/lib/" so it works when they're in /lib/multipath as
well as when they're in /lib64/multipath
master
Peter Jones 2009-11-24 14:43:56 -05:00
parent 4d1661d39a
commit aff873923c
1 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,12 @@ if [[ $hostonly ]]; then
inst /etc/multipath.conf
fi

if ldd /sbin/multipath |grep -q lib64; then
LIBDIR="/lib64"
else
LIBDIR="/lib"
fi

for f in \
/sbin/dmsetup \
/sbin/kpartx \
@ -11,8 +17,8 @@ for f in \
/sbin/xdrgetuid \
/sbin/xdrgetprio \
/etc/xdrdevices.conf \
/lib/libmultipath* \
/lib/multipath/* ;do
$(ls $LIBDIR/libmultipath* $LIBDIR/multipath/*) \
;do
inst $f
done