udev and alsa

Matias Feliciano feliciano.matias at free.fr
Fri Oct 1 09:20:11 UTC 2004


Le ven 01/10/2004 à 11:01, Harald Hoyer a écrit :
> elif [ "$ACTION" == "remove" ] ; then
>          card=`echo $DEVPATH | sed -n -e "s/^\/class\/sound\/controlC\([[:digit:]]\+\)\$/\1/p"`
>          if [ $card ] && [ -x /usr/sbin/alsactl ] ; then
>                  /usr/sbin/alsactl store $card > /dev/null 2>&1
>          fi
> fi

btw, this is done by /etc/modprobe.conf. example :
remove snd-via82xx { /usr/sbin/alsactl store 1 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-via82xx

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20041001/7283dbcd/attachment-0002.bin 


More information about the devel mailing list