Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Sep 2001 19:03:25 +0200
From:      Julio Merino <juli@merino.net>
To:        ports@freebsd.org
Subject:   Aumix bootup script
Message-ID:  <20010908190325.A322@juli.local>

next in thread | raw e-mail | index | archive | help

--FkmkrVfFsRoUs1wW
Content-Type: multipart/mixed; boundary="PEIAKu/WMn1b1Hv9"
Content-Disposition: inline


--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I've written a small startup/shutdown script for the aumix port. I have
send it to the aumix maintainer but he has told me to send the PR here
(BTW, what's the PR?).

The script is intended to be placed in /usr/local/etc/rc.d/aumix.sh. It
stores the mixers' volumes at system shutdown and restores them at
system bootup. I really hate readjusting the volumes every time I bootup.

The script works fine with several sound cards.

I've attached it to the mail message. Hope it can be included in the port ;)

Thanks.

PS: I don't know if this address is a mailing-list or not. If it is, I'm not
subscribed, sorry.

--=20
FreeBSD is the power--
Julio Merino <juli@merino.net> ICQ: 18961975

--PEIAKu/WMn1b1Hv9
Content-Type: application/x-sh
Content-Disposition: attachment; filename="aumix.sh"

#!/bin/sh
# By Julio Merino <juli@merino.net>
#
# This script stores mixers volumes on system shutdown and restores them
# on system startup.
# Usage: aumix.sh [start|stop]

PATH=/usr/local/bin:/usr/bin:/bin

# We use this directory so we can mount /usr/local read-only.
CONFDIR=/var/tmp

# Get a list of available mixers.
MIXERS=`cd /dev && ls mixer[0-9]`

case "$1" in
	start)
		for d in $MIXERS; do
			if [ -f $CONFDIR/aumix.$d ]; then
				aumix -d /dev/$d -f $CONFDIR/aumix.$d -L > /dev/null
			fi
		done
		echo -n ' aumix'
		;;
	stop)
		for d in $MIXERS; do
			aumix -d /dev/$d -f $CONFDIR/aumix.$d -S
		done
		echo -n ' aumix'
		;;
	*)
		echo "Usage: `basename $0` {start|stop}"
		;;
esac

--PEIAKu/WMn1b1Hv9--

--FkmkrVfFsRoUs1wW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7mk9dzz00ZOPKycwRAicTAJ0dqF/X45v0t2TYgNb08Qbh/4TwAwCcCPhi
4U/Ln4VtXBgp1PFJX+w4Yew=
=J7rv
-----END PGP SIGNATURE-----

--FkmkrVfFsRoUs1wW--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010908190325.A322>