Check write perms in sys/ldconfig.sh
This commit is contained in:
parent
def3e433bd
commit
6efdfd0e7a
1 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue