Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2026 11:49:30 +0000
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 63888350d583 - stable/15 - rc: virtual_oss: Silence potential hw.snd.default_unit error
Message-ID:  <69b3f9ca.1e560.52f56552@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=63888350d583e370814abb5c078244cd8ddf8eeb

commit 63888350d583e370814abb5c078244cd8ddf8eeb
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-03-06 12:27:03 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-03-13 11:49:23 +0000

    rc: virtual_oss: Silence potential hw.snd.default_unit error
    
    PR:             293582
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    
    (cherry picked from commit e85f221def717660c9daf4c0616dfb9cdfb75827)
---
 libexec/rc/rc.d/virtual_oss | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/rc/rc.d/virtual_oss b/libexec/rc/rc.d/virtual_oss
index 42353a6c1520..d55b51463442 100644
--- a/libexec/rc/rc.d/virtual_oss
+++ b/libexec/rc/rc.d/virtual_oss
@@ -24,7 +24,7 @@ required_modules="cuse"
 
 configs=
 pidpath="/var/run/${name}"
-default_unit=$(sysctl -n hw.snd.default_unit)
+default_unit=$(sysctl -n hw.snd.default_unit 2> /dev/null)
 virtual_oss_default_args="\
 	-S \
 	-C 2 \


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b3f9ca.1e560.52f56552>