From ce77b22ca413bfaf260a82bf044a5ebb7711b8d4 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 11 Oct 1996 23:00:18 +0000 Subject: [PATCH] pullup --- src/etc/rc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 6f4b6273..ca213e8f 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.25 1996/09/23 13:06:36 deraadt Exp $ +# $OpenBSD: rc,v 1.25.2.1 1996/10/11 23:00:18 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -297,7 +297,14 @@ rm -f $T if [ -f /sbin/ldconfig ]; then echo 'creating runtime link editor directory cache.' - ldconfig /usr/local/lib /usr/X11R6/lib + _LIBS= + if [ -d /usr/local/lib ]; then + _LIBS="$_LIBS /usr/local/lib" + fi + if [ -d /usr/X11R6/lib ]; then + _LIBS="$_LIBS /usr/X11R6/lib" + fi + ldconfig $_LIBS fi # Kerberos runs ONLY on the Kerberos server machine