Fatdog Arm

Artifact Content
Login

Artifact 12490caf012370ef71e26f321f4e0763a5540447:


     1  #!/bin/sh
     2  # For multiple sound cards.
     3  PARAMS="$@"
     4  if [ "$PARAMS" != "" ] ; then
     5  	alsamixer $PARAMS
     6  	exit
     7  fi
     8  if [ -e /etc/asound.conf ] ; then
     9  	CARD="$(cat /etc/asound.conf | grep 'ctl.!default' | sed 's/.*card \(.\).*/\1/')"
    10  	if [ "$CARD" != "" ]; then
    11  		alsamixer -c $CARD
    12  		exit
    13  	fi
    14  fi
    15  alsamixer