tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

90-alsa-restore.rules.in (369B)


      1 ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", TEST=="@sbindir@", TEST=="@mydatadir@", GOTO="alsa_restore_go"
      2 GOTO="alsa_restore_end"
      3 
      4 LABEL="alsa_restore_go"
      5 TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{device/number}"
      6 TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{device/number}"
      7 
      8 LABEL="alsa_restore_end"