Blob Blame Raw
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", \
  ENV{ALSA_CONFIG_PATH}="/etc/alsa/alsactl.conf", RUN+="/sbin/alsactl restore $name"
ACTION=="remove", SUBSYSTEM=="sound", KERNEL=="controlC*", \
  ENV{ALSA_CONFIG_PATH}="/etc/alsa/alsactl.conf", RUN+="/sbin/alsactl store $name"