From 8d99f31cbb4527d110fa9c367e86675beb53548e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 12 Feb 2018 06:51:20 +0000 Subject: [PATCH] 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 --- etc/defaults/rc.conf | 2 +- etc/devd/devmatch.conf | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index 6fe443e4b0c..584e842bba2 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -41,7 +41,7 @@ ddb_enable="NO" # Set to YES to load ddb scripts at boot. 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. diff --git a/etc/devd/devmatch.conf b/etc/devd/devmatch.conf index 518d7f8b533..960cb582c9f 100644 --- a/etc/devd/devmatch.conf +++ b/etc/devd/devmatch.conf @@ -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