svn commit: r329154 - in head/etc: defaults devd

Warner Losh imp at FreeBSD.org
Mon Feb 12 06:51:21 UTC 2018


Author: imp
Date: Mon Feb 12 06:51:20 2018
New Revision: 329154
URL: https://svnweb.freebsd.org/changeset/base/329154

Log:
  Turn devmatch on by default.
  
  Turn devmatch on by default. However, use 'start' instead of
  'onestart' in the devmatch.conf file so the setting of
  'devmatch_enable' is honored. Give an example of what to put in
  devd.conf if you want to disable just the run-time part of devmatch.
  
  Relnotes: yes

Modified:
  head/etc/defaults/rc.conf
  head/etc/devd/devmatch.conf

Modified: head/etc/defaults/rc.conf
==============================================================================
--- head/etc/defaults/rc.conf	Mon Feb 12 06:42:38 2018	(r329153)
+++ head/etc/defaults/rc.conf	Mon Feb 12 06:51:20 2018	(r329154)
@@ -41,7 +41,7 @@ ddb_enable="NO"		# Set to YES to load ddb scripts at b
 ddb_config="/etc/ddb.conf"	# ddb(8) config file.
 devd_enable="YES" 	# Run devd, to trigger programs on device tree changes.
 devd_flags=""		# Additional flags for devd(8).
-devmatch_enable="NO"	# Demand load kernel modules based on device ids.
+devmatch_enable="YES"	# Demand load kernel modules based on device ids.
 #kld_list="" 		# Kernel modules to load after local disks are mounted
 kldxref_enable="NO"	# Build linker.hints files with kldxref(8).
 kldxref_clobber="NO"	# Overwrite old linker.hints at boot.

Modified: head/etc/devd/devmatch.conf
==============================================================================
--- head/etc/devd/devmatch.conf	Mon Feb 12 06:42:38 2018	(r329153)
+++ head/etc/devd/devmatch.conf	Mon Feb 12 06:51:20 2018	(r329154)
@@ -9,5 +9,12 @@
 #
 # Generic NOMATCH event
 nomatch 100 {
-	action "service devmatch onestart"
+	action "service devmatch start"
 };
+
+# Add the following to devd.conf to preent this from running:
+# 	nomatch 1000 {
+#		action "true"
+#	};
+# it replaces the generic event with one of higher priority that
+# does nothing. You can also set 'devmatch_enable=NO' in /etc/rc.conf


More information about the svn-src-all mailing list