# PREFIX should be prepared by the buildpkg [ -z "$PREFIX" ] && PREFIX=/usr # Add LDCONFIG path LDCONF=/etc/ld.so.conf grep -x "$PREFIX/lib" $LDCONF > /dev/null if [ "$?" = "1" ]; then echo "Adding $PREFIX/lib to ldpath" echo "$PREFIX/lib" >> $LDCONF fi /sbin/ldconfig || /usr/sbin/ldconfig