aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGary Palmer <gpalmer@FreeBSD.org>1998-08-24 07:11:48 +0000
committerGary Palmer <gpalmer@FreeBSD.org>1998-08-24 07:11:48 +0000
commit47f0029b503e3fc69a7daec62b25a93aab1f9074 (patch)
tree4565c42386ef2d62983a0e3ccb058757211a53f3 /etc
parent9478de47f44964db4dbc38603864cdbdb585789a (diff)
Notes
Diffstat (limited to 'etc')
-rw-r--r--etc/rc20
1 files changed, 11 insertions, 9 deletions
diff --git a/etc/rc b/etc/rc
index 454014c35094..0ce0ff098dbe 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.149 1998/08/14 06:49:05 phk Exp $
+# $Id: rc,v 1.150 1998/08/20 11:22:52 phk Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -243,14 +243,16 @@ fi
# Make shared lib searching a little faster. Leave /usr/lib first if you
# add your own entries or you may come to grief.
-_LDC=/usr/lib/aout
-for i in $ldconfig_paths; do
- if test -d $i; then
- _LDC="${_LDC} $i"
- fi
-done
-echo 'setting ldconfig path:' ${_LDC}
-ldconfig ${_LDC}
+if [ -x /sbin/ldconfig ]; then
+ _LDC=/usr/lib/aout
+ for i in $ldconfig_paths; do
+ if test -d $i; then
+ _LDC="${_LDC} $i"
+ fi
+ done
+ echo 'setting ldconfig path:' ${_LDC}
+ ldconfig ${_LDC}
+fi
# Now start up miscellaneous daemons that don't belong anywhere else
#