3 # $NetBSD: ldconfig,v 1.5 2002/03/22 04:33:58 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/ldconfig,v 1.7 2003/06/30 15:02:05 trhodes Exp $
8 # REQUIRE: mountcritremote
14 ldconfig_command
="/sbin/ldconfig"
15 start_cmd
="ldconfig_start"
21 ldconfig
=${ldconfig_command}
22 checkyesno ldconfig_insecure
&& _ins
="-i"
23 if [ -x "${ldconfig_command}" ]; then
25 for i
in ${ldconfig_local_dirs}; do
26 if [ -d "${i}" ]; then
27 ldconfig_paths
="${ldconfig_paths} `find ${i} -type f`"
30 for i
in ${ldconfig_paths} /etc
/ld-elf.so.conf
; do
31 if [ -r "${i}" ]; then
35 echo 'ELF ldconfig path:' ${_LDC}
36 ${ldconfig} -elf ${_ins} ${_LDC}