radare2/sys/ldconfig.sh

16 lines
339 B
Bash
Raw Normal View History

#!/bin/sh
LD=/etc/ld.so.conf.d
2013-06-17 01:15:02 +00:00
if test -w $LD ; then
if type ldconfig > /dev/null 2>&1 ; then
mkdir -p $LD
P=$(awk -F= '/^LIBDIR/{print $2}' config-user.mk)
2013-09-13 22:45:49 +00:00
D=`dirname $P`/`basename $P`
if [ /usr != "$D" ]; then
echo $P > $LD/radare.conf
2013-09-13 22:45:49 +00:00
# do not update symlinks to avoid r2 install issues
ldconfig -X
fi
2013-06-17 01:15:02 +00:00
fi
fi
2013-06-17 01:15:02 +00:00
exit 0