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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to