opnsense-src/libexec/rc
Christos Margiolis f89909e462 virtual_oss: Introduce virtual_oss_default_control_device rc variable
The -t option gives the user the ability to create a control device for
a given virtual_oss(8) instance, so that the instance's configuration
can be manipulated during runtime with virtual_oss_cmd(8). As is
expected, the control device's name is not known, since it is specified
by the user.

This patch introduces a virtual_oss_default_control_device rc variable,
which defaults to "vdsp.ctl". The goal of this is that third-party
programs and scripts can access the control device of the default
virtual_oss(8) configuration without guessing. This is especially useful
for sbin/devd/snd.conf which deals with hot-swapping sound devices using
virtual_oss(8).

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D55670

(cherry picked from commit 70e27ecba51892cbe4cc94bbf785c6dd261dfd57)
2026-04-23 10:41:15 +02:00
..
rc.d virtual_oss: Introduce virtual_oss_default_control_device rc variable 2026-04-23 10:41:15 +02:00
tests rc tests: Add a test to check for warnings from rcorder 2025-10-22 12:52:00 +00:00
debug.sh debug.sh: Fix a typo 2026-04-10 14:27:55 -04:00
hooks.sh Replace license with just SPDX BSD-2-Clause 2025-08-07 15:15:37 -07:00
Makefile debug.sh take advantage of hooks.sh 2024-09-10 12:04:15 -07:00
netstart libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
network.subr network.subr: correct return code in case of bad call to ifisup() 2025-07-01 21:33:19 +07:00
pccard_ether libexec/rc: improve performance of pccard_ether script 2025-07-01 21:13:10 +07:00
rc rc: Use check_jail to check values of security.jail MIBs 2025-07-12 18:20:32 +02:00
rc.bsdextended Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.conf rc.conf: Fix typo in comment 2026-04-20 04:43:27 +00:00
rc.firewall Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.initdiskless Update rc.initdiskless, fix error handling of remount_optional 2025-01-24 12:40:33 -07:00
rc.resume Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rc.shutdown rc: Use check_jail to check values of security.jail MIBs 2025-07-12 18:20:32 +02:00
rc.subr rc.subr: Use the variable we defined to invoke setaudit(8) 2025-12-29 14:31:31 +00:00
rc.suspend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
safe_eval.sh Replace license with just SPDX BSD-2-Clause 2025-08-07 15:15:37 -07:00