#!/bin/sh
# unmute the sound card at boot


if [ -n "$(amixer scontrols | grep PCM)" ]; then
    CONTROL=PCM
elif [ -n "$(amixer scontrols | grep Master)" ]; then
    CONTROL=Master
fi

if [ -n "$CONTROL" ]; then
    echo -n "Unmuting sound device: "
    amixer sset $CONTROL,0 100% > /tmp/`basename $0`.log 2>&1 && \
        echo '[ OK ]' || echo '[FAIL]'
fi      

