ldconfig (197947) | ldconfig (217073) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/ldconfig 197947 2009-10-10 22:17:03Z dougb $ | 3# $FreeBSD: head/etc/rc.d/ldconfig 217073 2011-01-06 21:09:22Z imp $ |
4# 5 6# PROVIDE: ldconfig 7# REQUIRE: mountcritremote cleanvar 8# BEFORE: DAEMON 9 10. /etc/rc.subr 11 --- 49 unchanged lines hidden (view full) --- 61 ;; 62 esac 63 64 # Legacy aout support for i386 only 65 case `sysctl -n hw.machine_arch` in 66 i386) 67 # Default the a.out ldconfig path. 68 : ${ldconfig_paths_aout=${ldconfig_paths}} | 4# 5 6# PROVIDE: ldconfig 7# REQUIRE: mountcritremote cleanvar 8# BEFORE: DAEMON 9 10. /etc/rc.subr 11 --- 49 unchanged lines hidden (view full) --- 61 ;; 62 esac 63 64 # Legacy aout support for i386 only 65 case `sysctl -n hw.machine_arch` in 66 i386) 67 # Default the a.out ldconfig path. 68 : ${ldconfig_paths_aout=${ldconfig_paths}} |
69 _LDC=/usr/lib/aout 70 for i in ${ldconfig_paths_aout} /etc/ld.so.conf; do | 69 _LDC="" 70 for i in /usr/lib/aout ${ldconfig_paths_aout} /etc/ld.so.conf; do |
71 if [ -r "${i}" ]; then 72 _LDC="${_LDC} ${i}" 73 fi 74 done 75 check_startmsgs && echo 'a.out ldconfig path:' ${_LDC} 76 ${ldconfig} -aout ${_ins} ${_LDC} 77 ;; 78 esac 79 fi 80} 81 82load_rc_config $name 83run_rc_command "$1" | 71 if [ -r "${i}" ]; then 72 _LDC="${_LDC} ${i}" 73 fi 74 done 75 check_startmsgs && echo 'a.out ldconfig path:' ${_LDC} 76 ${ldconfig} -aout ${_ins} ${_LDC} 77 ;; 78 esac 79 fi 80} 81 82load_rc_config $name 83run_rc_command "$1" |