Deleted Added
full compact
ldconfig (179945) ldconfig (197947)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/ldconfig 179945 2008-06-23 04:46:54Z mtm $
3# $FreeBSD: head/etc/rc.d/ldconfig 197947 2009-10-10 22:17:03Z dougb $
4#
5
6# PROVIDE: ldconfig
7# REQUIRE: mountcritremote cleanvar
8# BEFORE: DAEMON
9
10. /etc/rc.subr
11

--- 19 unchanged lines hidden (view full) ---

31 fi
32 fi
33 done
34 for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do
35 if [ -r "${i}" ]; then
36 _LDC="${_LDC} ${i}"
37 fi
38 done
4#
5
6# PROVIDE: ldconfig
7# REQUIRE: mountcritremote cleanvar
8# BEFORE: DAEMON
9
10. /etc/rc.subr
11

--- 19 unchanged lines hidden (view full) ---

31 fi
32 fi
33 done
34 for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do
35 if [ -r "${i}" ]; then
36 _LDC="${_LDC} ${i}"
37 fi
38 done
39 [ -z "${rc_quiet}" ] && echo 'ELF ldconfig path:' ${_LDC}
39 check_startmsgs && echo 'ELF ldconfig path:' ${_LDC}
40 ${ldconfig} -elf ${_ins} ${_LDC}
41
42 case `sysctl -n hw.machine_arch` in
43 amd64)
44 for i in ${ldconfig_local32_dirs}; do
45 if [ -d "${i}" ]; then
46 _files=`find ${i} -type f`
47 if [ -n "${_files}" ]; then
48 ldconfig32_paths="${ldconfig32_paths} `cat ${_files} | sort -u`"
49 fi
50 fi
51 done
52 _LDC=""
53 for i in ${ldconfig32_paths}; do
54 if [ -r "${i}" ]; then
55 _LDC="${_LDC} ${i}"
56 fi
57 done
40 ${ldconfig} -elf ${_ins} ${_LDC}
41
42 case `sysctl -n hw.machine_arch` in
43 amd64)
44 for i in ${ldconfig_local32_dirs}; do
45 if [ -d "${i}" ]; then
46 _files=`find ${i} -type f`
47 if [ -n "${_files}" ]; then
48 ldconfig32_paths="${ldconfig32_paths} `cat ${_files} | sort -u`"
49 fi
50 fi
51 done
52 _LDC=""
53 for i in ${ldconfig32_paths}; do
54 if [ -r "${i}" ]; then
55 _LDC="${_LDC} ${i}"
56 fi
57 done
58 [ -z "${rc_quiet}" ] &&
58 check_startmsgs &&
59 echo '32-bit compatibility ldconfig path:' ${_LDC}
60 ${ldconfig} -32 -m ${_ins} ${_LDC}
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
71 if [ -r "${i}" ]; then
72 _LDC="${_LDC} ${i}"
73 fi
74 done
59 echo '32-bit compatibility ldconfig path:' ${_LDC}
60 ${ldconfig} -32 -m ${_ins} ${_LDC}
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
71 if [ -r "${i}" ]; then
72 _LDC="${_LDC} ${i}"
73 fi
74 done
75 [ -z "${rc_quiet}" ] &&
76 echo 'a.out ldconfig path:' ${_LDC}
75 check_startmsgs && echo 'a.out ldconfig path:' ${_LDC}
77 ${ldconfig} -aout ${_ins} ${_LDC}
78 ;;
79 esac
80 fi
81}
82
83load_rc_config $name
84run_rc_command "$1"
76 ${ldconfig} -aout ${_ins} ${_LDC}
77 ;;
78 esac
79 fi
80}
81
82load_rc_config $name
83run_rc_command "$1"