git: e85f221def71 - main - rc: virtual_oss: Silence potential hw.snd.default_unit error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Mar 2026 12:27:10 UTC
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 \