mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:35:42 +01:00
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:
parent
37447085c6
commit
b5591747fd
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue