summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-11-12 11:02:43 +0000
committerjkh <jkh@FreeBSD.org>1995-11-12 11:02:43 +0000
commitfa84a4fb07e91e5fdc71dcd9417f40c8cc225f34 (patch)
treec3128bede584619ee0acb25c966cad2941a01465 /usr.sbin
parent3b89ca83bf66dc04ef44bb3431437ac195a546d4 (diff)
downloadFreeBSD-src-fa84a4fb07e91e5fdc71dcd9417f40c8cc225f34.zip
FreeBSD-src-fa84a4fb07e91e5fdc71dcd9417f40c8cc225f34.tar.gz
Initialize ld.so.hints if necessary.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/package.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/package.c b/usr.sbin/sysinstall/package.c
index 80b772c..0af9df3 100644
--- a/usr.sbin/sysinstall/package.c
+++ b/usr.sbin/sysinstall/package.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: package.c,v 1.24 1995/11/10 06:49:03 jkh Exp $
+ * $Id: package.c,v 1.25 1995/11/10 15:10:07 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -70,6 +70,10 @@ package_extract(Device *dev, char *name)
char *where;
int fd, ret;
+ /* If necessary, initialize the ldconfig hints */
+ if (!file_readable("/var/run/ld.so.hints"))
+ vsystem("ldconfig /usr/lib /usr/local/lib /usr/X11R6/lib");
+
/* Check to make sure it's not already there */
if (!vsystem("pkg_info -e %s", name)) {
msgDebug("package %s marked as already installed - return SUCCESS.\n", name);
OpenPOWER on IntegriCloud