Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2024 01:48:08 GMT
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 11d7aa07eb31 - stable/14 - rc.d/devmatch: Silence sysctl hw.bus.devctl_nomatch_enabled=1
Message-ID:  <202409070148.4871m8gf042108@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=11d7aa07eb31d94cd72044f5108b2335d46db44e

commit 11d7aa07eb31d94cd72044f5108b2335d46db44e
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2024-08-28 23:26:26 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2024-09-07 00:03:16 +0000

    rc.d/devmatch: Silence sysctl hw.bus.devctl_nomatch_enabled=1
    
    As with various other rc scripts, we don't want the output from this
    being visible in the boot log.
    
    Fixes:          6437872c1d66 ("New sysctl to disable NOMATCH until devmatch runs")
    MFC after:      1 week
    
    (cherry picked from commit 62775aebf725a79703592f3276118245a74afdac)
---
 libexec/rc/rc.d/devmatch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/rc/rc.d/devmatch b/libexec/rc/rc.d/devmatch
index 67bb14761614..37c4772cfcb7 100755
--- a/libexec/rc/rc.d/devmatch
+++ b/libexec/rc/rc.d/devmatch
@@ -46,7 +46,7 @@ devmatch_start()
 	if [ -n "$one_nomatch" ]; then
 		list=$(devmatch -p "${one_nomatch}" | sort -u)
 	else
-		sysctl hw.bus.devctl_nomatch_enabled=1
+		sysctl hw.bus.devctl_nomatch_enabled=1 > /dev/null
 		list=$(devmatch | sort -u)
 	fi
 



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