Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2018 14:43:21 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333491 - head/etc/rc.d
Message-ID:  <201805111443.w4BEhLF3070377@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Fri May 11 14:43:21 2018
New Revision: 333491
URL: https://svnweb.freebsd.org/changeset/base/333491

Log:
  Make /etc/rc.d/kldxref not print anything for directories that don't
  contain any kernel modules.  This makes the common case completely silent,
  as it should be.
  
  Reviewed by:	imp@
  MFC after:	2 weeks
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D14694

Modified:
  head/etc/rc.d/kldxref

Modified: head/etc/rc.d/kldxref
==============================================================================
--- head/etc/rc.d/kldxref	Fri May 11 13:22:43 2018	(r333490)
+++ head/etc/rc.d/kldxref	Fri May 11 14:43:21 2018	(r333491)
@@ -24,8 +24,9 @@ kldxref_start() {
 	fi
 	IFS=';'
 	for MODULE_DIR in $MODULE_PATHS; do
-		if [ ! -f "$MODULE_DIR/linker.hints" ] ||
-		    checkyesno kldxref_clobber; then
+		if checkyesno kldxref_clobber ||
+		    [ ! -f "$MODULE_DIR/linker.hints" ] &&
+		    [ `echo ${MODULE_DIR}/*.ko` != "${MODULE_DIR}/*.ko" ]; then
 			echo "Building $MODULE_DIR/linker.hints"
 			kldxref "$MODULE_DIR"
 		fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805111443.w4BEhLF3070377>