conf/78906: Allow mixer_enable="NO" in rc.conf

Stuart Barkley stuartb at 4gh.net
Tue Mar 15 19:00:12 PST 2005


>Number:         78906
>Category:       conf
>Synopsis:       Allow mixer_enable="NO" in rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 16 03:00:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Stuart Barkley
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD freeman.4gh.net 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Tue Mar 8 19:56:41 EST 2005 stuartb at freeman.4gh.net:/usr/src/sys/i386/compile/4GH i386
>Description:
/etc/rc.d/mixer always restores mixer settings to state preserved on
the last shutdown.

The enclosed patch allows the user to disable this functionality.
>How-To-Repeat:
Set mixer to any specific setting.
After rebooting you will find the same mixer settings.

Note: I have a small /usr/local/etc/rc.d script I use which is similar to
/etc/rc.d/mixer, except it doesn't save the mixer settings on shutdown.
Instead the mixer settings are always set to a known and desired base setting.

Note: The /etc/rc.d/mixer script does not preserve the record source
settings across reboots.

>Fix:

--- /etc/rc.d/mixer.orig	Thu Nov  4 20:27:17 2004
+++ /etc/rc.d/mixer	Tue Mar  8 21:34:11 2005
@@ -34,6 +34,7 @@
 . /etc/rc.subr
 
 name="mixer"
+rcvar=`set_rcvar`
 stop_cmd="mixer_stop"
 start_cmd="mixer_start"
 reload_cmd="mixer_start"
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list