diff --git a/sys/ldconfig.sh b/sys/ldconfig.sh index a42822836c..dc397c5ad7 100755 --- a/sys/ldconfig.sh +++ b/sys/ldconfig.sh @@ -1,8 +1,10 @@ #!/bin/sh LD=/etc/ld.so.conf.d -type ldconfig > /dev/null 2>&1 -if [ $? = 0 ]; then - mkdir -p $LD - awk -F= '/^LIBDIR/{print $2}' config-user.mk > $LD/radare.conf - ldconfig +if test -w $LD ; then + if type ldconfig > /dev/null 2>&1 ; then + mkdir -p $LD + awk -F= '/^LIBDIR/{print $2}' config-user.mk > $LD/radare.conf + ldconfig + fi fi +exit 0