Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Mar 2026 12:27:10 +0000
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e85f221def71 - main - rc: virtual_oss: Silence potential hw.snd.default_unit error
Message-ID:  <69aac81e.45ee3.57365b0@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by christos:

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

commit e85f221def717660c9daf4c0616dfb9cdfb75827
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-03-06 12:27:03 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-03-06 12:27:03 +0000

    rc: virtual_oss: Silence potential hw.snd.default_unit error
    
    PR:             293582
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 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?69aac81e.45ee3.57365b0>