3 # $NetBSD: ldconfig,v 1.5 2002/03/22 04:33:58 thorpej Exp $
8 # REQUIRE: mountcritremote
15 ldconfig_command="/sbin/ldconfig"
16 start_cmd="ldconfig_start"
22 ldconfig=${ldconfig_command}
23 checkyesno ldconfig_insecure && _ins="-i"
24 if [ -x "${ldconfig_command}" ]; then
26 for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do
27 if [ -r "${i}" ]; then
31 echo 'ELF ldconfig path:' ${_LDC}
32 ${ldconfig} -elf ${_ins} ${_LDC}
34 # Legacy aout support for i386 only
35 case `sysctl -n hw.machine_arch` in
37 # Default the a.out ldconfig path.
38 : ${ldconfig_paths_aout=${ldconfig_paths}}
40 for i in ${ldconfig_paths_aout} /etc/ld.so.conf; do
41 if [ -r "${i}" ]; then
45 echo 'a.out ldconfig path:' ${_LDC}
46 ${ldconfig} -aout ${_ins} ${_LDC}