Added more robust ldconfig setting in rc, removed redundant ldconfig in

rc.local.
This commit is contained in:
jkh 1993-12-30 18:19:18 +00:00
parent 10642465df
commit 00fb881791
2 changed files with 9 additions and 6 deletions

11
etc/rc
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: rc,v 1.10 1993/12/21 02:58:15 ache Exp $
# $Id: rc,v 1.11 1993/12/21 21:28:12 wollman Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@ -81,8 +81,15 @@ rm -f /var/spool/uucp/LCK.*
rm -f /var/spool/uucp/STST/*
(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })
# Make shared lib searching a little faster. Leave /usr/lib first if you
# add your own entries or you may come to grief.
if [ -x /sbin/ldconfig ]; then
ldconfig /usr/X386/lib
_LDC=/usr/lib
if [ -d /usr/X386/lib ]; then _LDC="${_LDC} /usr/X386/lib" ; fi
if [ -d /usr/local/lib ]; then _LDC="${_LDC} /usr/local/lib" ; fi
if [ -d /usr/gnu/lib ]; then _LDC="${_LDC} /usr/gnu/lib" ; fi
echo 'setting ldconfig path:' ${_LDC}
ldconfig ${_LDC}
fi
echo -n 'starting system logger'

View File

@ -13,10 +13,6 @@ cp $T /etc/motd
chmod 666 /etc/motd
rm -f $T
# This is a performance win with shared libraries.
echo 'setting default ldconfig path.'
ldconfig /usr/lib /usr/X386/lib /usr/local/lib /usr/gnu/lib
echo -n 'starting local daemons:'
# Kerberos runs ONLY on the Kerberos server machine