https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295560

            Bug ID: 295560
           Summary: virtual_oss: actions in /etc/devd/snd.conf are broken.
           Product: Base System
           Version: 15.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

This is observed in FreeBSD 15.1-RC1

This error occurs at boot when the microphone from my webcam is recognized:

sysrc: unknown variable:`virtual_oss_default_control_device'
virtual_oss_cmd : could not open /dev/

The source of the error is found in /etc/devd/snd.conf from the lines:

action                  "/usr/sbin/virtual_oss_cmd \
        /dev/$(sysrc virtual_oss_default_control_device) -P /dev/$cdev";

The problem here is that the variable is not found in /etc/defaults/rc.conf and
therefore needs to be explicitly defined in /etc/rc.conf or /etc/rc.conf.local
in order for sysrc to find it.

Moreover the syntax needs to be 'sysrc -n' because sysrc returns a key/value
pair by default.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to