File: 90-alsa-restore.rules.in

package info (click to toggle)
alsa-utils 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,956 kB
  • sloc: ansic: 24,749; sh: 7,171; xml: 590; makefile: 434; sed: 16
file content (8 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", TEST=="@sbindir@", TEST=="@mydatadir@", GOTO="alsa_restore_go"
GOTO="alsa_restore_end"

LABEL="alsa_restore_go"
TEST!="@daemonswitch@", TEST=="/usr/sbin/alsactl", RUN+="@sbindir@/alsactl -E HOME=@alsactlhome@ restore $attr{device/number}"
TEST=="@daemonswitch@", TEST=="/usr/sbin/alsactl", RUN+="@sbindir@/alsactl -E HOME=@alsactlhome@ nrestore $attr{device/number}"

LABEL="alsa_restore_end"