Skip to content

Commit

Permalink
alsa-restore.rules: use devnode instead number atribute
Browse files Browse the repository at this point in the history
Fixes: #244
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
perexg committed Nov 15, 2023
1 parent 3744708 commit b559174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alsactl/90-alsa-restore.rules.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", TEST==
GOTO="alsa_restore_end"

LABEL="alsa_restore_go"
TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{device/number}"
TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{device/number}"
TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $devnode"
TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $devnode"

LABEL="alsa_restore_end"

0 comments on commit b559174

Please sign in to comment.