Commit a106afc1 authored by Daniel Schreiber's avatar Daniel Schreiber

bugfix alsa udev script

parent 2d220fbd
......@@ -6,14 +6,15 @@ if [[ $ACTION != 'add' ]]; then
exit
fi
card="sound_$1"
card="$1"
CONFDIR=/opt/clt/alsamixer
SERIAL="${ID_SERIAL_SHORT}"
if [[ -f ${CONFDIR}/${SERIAL}.state ]]; then
MIXERFILE="${CONFDIR}/${SERIAL}.state"
else
MIXERFILE="${CONFDIR}/default.state"
MIXERFILE="${CONFDIR}/default_${card}.state"
fi
logger "using settings from $MIXERFILE alsactl restore sound_${card} -f ${MIXERFILE}"
alsactl restore "${card}" -f "${MIXERFILE}"
alsactl restore "sound_${card}" -f "${MIXERFILE}"|logger
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment