- Executable file rootfs-template/usr/bin/alsamixer.sh — part of check-in [e82af90148] at 2013-09-22 14:42:22 on branch trunk — initial drop - post alpha2 but pre-alpha3 (user: james
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