90-alsa-restore.rules 341 B

12345678
  1. ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go"
  2. GOTO="alsa_restore_end"
  3. LABEL="alsa_restore_go"
  4. TEST!="/etc/alsa/state-daemon.conf", RUN+="/usr/sbin/alsactl restore $attr{number}"
  5. TEST=="/etc/alsa/state-daemon.conf", RUN+="/usr/sbin/alsactl nrestore $attr{number}"
  6. LABEL="alsa_restore_end"