Fatdog Arm

Artifact Content
Login

Artifact 12490caf012370ef71e26f321f4e0763a5540447:


#!/bin/sh
# For multiple sound cards.
PARAMS="$@"
if [ "$PARAMS" != "" ] ; then
	alsamixer $PARAMS
	exit
fi
if [ -e /etc/asound.conf ] ; then
	CARD="$(cat /etc/asound.conf | grep 'ctl.!default' | sed 's/.*card \(.\).*/\1/')"
	if [ "$CARD" != "" ]; then
		alsamixer -c $CARD
		exit
	fi
fi
alsamixer