Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2018 06:51:20 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329154 - in head/etc: defaults devd
Message-ID:  <201802120651.w1C6pKqF042318@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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