From philipp@adore.at  Tue Oct 26 19:14:51 2004
Return-Path: <philipp@adore.at>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9D54B16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Oct 2004 19:14:51 +0000 (GMT)
Received: from adore.at (stargate.bgld2.sth.ac.at [193.170.62.66])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C645543D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Oct 2004 19:14:50 +0000 (GMT)
	(envelope-from philipp@adore.at)
Received: by adore.at (Postfix, from userid 1001)
	id 5AF631179B; Tue, 26 Oct 2004 21:14:59 +0000 (UTC)
Message-Id: <20041026211459.5AF631179B@adore.at>
Date: Tue, 26 Oct 2004 21:14:59 +0000 (UTC)
From: Philipp Huber <philipp@adore.at>
Reply-To: Philipp Huber <philipp.huber@gmx.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] rc.d script for mixer settings
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         73176
>Category:       conf
>Synopsis:       [patch] rc.d script for mixer settings
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 26 19:20:15 GMT 2004
>Closed-Date:    Thu Nov 04 08:54:01 GMT 2004
>Last-Modified:  Thu Nov 04 08:54:01 GMT 2004
>Originator:     Philipp Huber
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD bsdnew 5.3-STABLE FreeBSD 5.3-STABLE #3: Mon Oct 18 20:10:01 UTC 2004 root@bsdnew:/usr/obj/usr/src/sys/BSDNEW i386


>Description:
	This is a rc.d script for restoring mixer settings saved in the mixer.conf file.
>How-To-Repeat:
>Fix:


#!/bin/sh


# PROVIDE: mixerconf

. /etc/rc.subr

name="mixerconf"
start_cmd='read_mixerconf'
stop_cmd=':'

read_mixerconf()
{
	echo "Applying mixer settings..."

	mixerctrl="/usr/sbin/mixer"

	if [ -r /etc/mixer.conf ]; then
		while read action ; do
		

		left=${action%=*}
		right=${action#*=}

		case "${action}" in
		\#*)		;;
		rec_src*)  	(${mixerctrl} =rec ${right} 2>&1) >/dev/null
				;;
		*) 		${mixerctrl} ${left} ${right} 1>/dev/null
				;;
		esac

		done < /etc/mixer.conf
	fi
}

load_rc_config $name
run_rc_command "$1"

>Release-Note:
>Audit-Trail:

From: Ceri Davies <ceri@submonkey.net>
To: Philipp Huber <philipp.huber@gmx.at>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: conf/73176: [patch] rc.d script for mixer settings
Date: Wed, 3 Nov 2004 20:51:30 +0000

 On Tue, Oct 26, 2004 at 09:14:59PM +0000, Philipp Huber wrote:
 > 
 > >Description:
 > 	This is a rc.d script for restoring mixer settings saved in the mixer.conf file.
 
 Is /etc/rc.d/mixer deficient in some way?  If so, could the requisite
 functionality be merged in there?
 
 Ceri
 -- 

From: Philipp Huber <philipp.huber@gmx.at>
To: Ceri Davies <ceri@submonkey.net>,
	FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: conf/73176: [patch] rc.d script for mixer settings
Date: Thu, 4 Nov 2004 09:41:11 +0000

 On Wednesday 03 November 2004 20:51, Ceri Davies wrote:
 
 hi,
 
 i just saw that there's already a rc.d script providing that functionality. i 
 didn't have this one in rc.d.
 sorry for that, please close the pr.
 
 philipp
 
 > >  This is a rc.d script for restoring mixer settings saved in the
 > > mixer.conf file.
 >
 > Is /etc/rc.d/mixer deficient in some way?  If so, could the requisite
 > functionality be merged in there?
 >
 > Ceri
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Nov 4 08:53:49 GMT 2004 
State-Changed-Why:  
Closed at submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73176 
>Unformatted:
