From owner-freebsd-hackers Sun Aug 8 12:12:18 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ozz.etrust.ru (ozz.etrust.ru [195.2.84.116]) by hub.freebsd.org (Postfix) with ESMTP id 3F4FC14BD6; Sun, 8 Aug 1999 12:12:05 -0700 (PDT) (envelope-from osa@etrust.ru) Received: from localhost (localhost [127.0.0.1]) by ozz.etrust.ru (Postfix) with ESMTP id 4DDAB29A; Sun, 8 Aug 1999 23:08:56 +0400 (MSD) Date: Sun, 8 Aug 1999 23:08:56 +0400 (MSD) From: Osokin Sergey To: "Brian F. Feldman" Cc: hackers@FreeBSD.ORG Subject: Re: rc addition proposal: mixer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 8 Aug 1999, Brian F. Feldman wrote: > I envision something like the following being available in /etc/rc, > since there are many people who set mixer default values at startup in > some random way. It would be nice to provide an easy way to do this. > I'd like to get a vote on whether this should be added or not. > > I'd do something like the following: > > if [ -n "$mixer_device" ]; do > mixer="mixer -f $mixer_device" > else > mixer="mixer" > done > for cf in `$mixer | cut -d' ' -f2` recsrc; do > if eval [ -n "mixer_$cf" ]; then > eval \$mixer \$cf \$mixer_$cf > fi > done > Now in current i use following script (aka mixer.sh) for install sound environment: #!/bin/sh mixer vol 36 mixer synth 36 mixer pcm 36 mixer line 36 mixer cd 68 Maybe add to rc.conf all features of mixer? (aka vol, bass & etc) Rgdz, Osokin Sergey aka oZZ, osa@etrust.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message