Commit 2d220fbd authored by Daniel Schreiber's avatar Daniel Schreiber

alsaplug script für udev

parent 02a7de0b
#!/bin/bash
env|logger
logger "$1"
if [[ $ACTION != 'add' ]]; then
exit
fi
card="sound_$1"
CONFDIR=/opt/clt/alsamixer
SERIAL="${ID_SERIAL_SHORT}"
if [[ -f ${CONFDIR}/${SERIAL}.state ]]; then
MIXERFILE="${CONFDIR}/${SERIAL}.state"
else
MIXERFILE="${CONFDIR}/default.state"
fi
alsactl restore "${card}" -f "${MIXERFILE}"
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