2013-06-16 23:39:49 +00:00
|
|
|
#!/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
|
2013-06-17 09:41:00 +00:00
|
|
|
P=$(awk -F= '/^LIBDIR/{print $2}' config-user.mk)
|
2015-06-17 03:47:36 +00:00
|
|
|
D="$(dirname "$P")"/"$(basename "$P")"
|
2013-06-17 09:41:00 +00:00
|
|
|
if [ /usr != "$D" ]; then
|
2015-06-17 03:47:36 +00:00
|
|
|
echo "$P" > "$LD/radare.conf"
|
2013-09-13 22:45:49 +00:00
|
|
|
# do not update symlinks to avoid r2 install issues
|
|
|
|
ldconfig -X
|
2013-06-17 09:41:00 +00:00
|
|
|
fi
|
2013-06-17 01:15:02 +00:00
|
|
|
fi
|
2013-06-16 23:39:49 +00:00
|
|
|
fi
|
2013-06-17 01:15:02 +00:00
|
|
|
exit 0
|