radare2/sys/ldconfig.sh

15 lines
280 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)
D=`dirname $P``basename $P`
if [ /usr != "$D" ]; then
echo $P > $LD/radare.conf
ldconfig
fi
2013-06-17 01:15:02 +00:00
fi
fi
2013-06-17 01:15:02 +00:00
exit 0