alsa-restore.rules: use devnode instead number atribute

Fixes: https://github.com/alsa-project/alsa-utils/issues/244
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2023-11-15 15:02:31 +01:00
parent 37447085c6
commit b5591747fd

View file

@ -2,7 +2,7 @@ ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", TEST==
GOTO="alsa_restore_end" GOTO="alsa_restore_end"
LABEL="alsa_restore_go" LABEL="alsa_restore_go"
TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{device/number}" TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $devnode"
TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{device/number}" TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $devnode"
LABEL="alsa_restore_end" LABEL="alsa_restore_end"