1#!/bin/sh 2LD=/etc/ld.so.conf.d 3if test -w $LD ; then 4 if type ldconfig > /dev/null 2>&1 ; then 5 mkdir -p $LD 6 P=$(awk -F= '/^LIBDIR/{print $2}' config-user.mk) 7 D="$(dirname "$P")" 8 if [ /usr != "$D" ]; then 9 echo "$P" > "$LD/radare.conf" 10 # do not update symlinks to avoid r2 install issues 11 ldconfig -X 12 fi 13 fi 14fi 15exit 0 16