perex 1e0bef
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", \
perex ea6ff3
  RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore /dev/$name"
perex 1e0bef
ACTION=="remove", SUBSYSTEM=="sound", KERNEL=="controlC*", \
perex ea6ff3
  RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store /dev/$name"