#!/bin/sh # # set default volumes for playback on ALSA # # set_default_mixer [-f] [card#] # # written by Takashi Iwai # if [ -f /etc/asound.state -a x$1 != x-f ]; then /usr/sbin/alsactl restore >/dev/null 2>&1 exit 0 fi if [ x$1 = x-f ]; then shift fi if [ -n "$1" ]; then card="-c $1" fi amixer -q -s $card <