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 $
5 # $DragonFly: src/etc/rc.d/ldconfig,v 1.5 2004/03/20 16:27:39 drhodus Exp $
9 # REQUIRE: mountall mountcritremote
16 ldconfig_command="/sbin/ldconfig"
17 start_cmd="ldconfig_start"
23 ldconfig=${ldconfig_command}
24 checkyesno ldconfig_insecure && _ins="-i"
25 if [ -x "${ldconfig_command}" ]; then
26 _LDC="/usr/lib /usr/lib/gcc*"
27 for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do
28 if [ -r "${i}" ]; then
32 echo 'ELF ldconfig path:' ${_LDC}
33 ${ldconfig} -elf ${_ins} ${_LDC}