From owner-svn-src-head@freebsd.org Mon Feb 12 06:51:20 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9CB9F1DE05; Mon, 12 Feb 2018 06:51:20 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7CE6B82F49; Mon, 12 Feb 2018 06:51:20 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 77E676781; Mon, 12 Feb 2018 06:51:20 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1C6pKOo042320; Mon, 12 Feb 2018 06:51:20 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1C6pKqF042318; Mon, 12 Feb 2018 06:51:20 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201802120651.w1C6pKqF042318@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Mon, 12 Feb 2018 06:51:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329154 - in head/etc: defaults devd X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/etc: defaults devd X-SVN-Commit-Revision: 329154 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2018 06:51:21 -0000 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