mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 07:26:32 +01:00
alsa-restore.rules: refer to correct attr
$attr{number} in the RUN rule is an empty expansion. This makes sense, because the path doesn't exist -- i.e., it refers to the path: /sys/devices/pci0000:00/foo/bar/sound/card0/controlC0/number Instead, refer to $attr{device/number}, which does exist. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8aa13eec80
commit
ef0e588c76
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="
|
||||||
GOTO="alsa_restore_end"
|
GOTO="alsa_restore_end"
|
||||||
|
|
||||||
LABEL="alsa_restore_go"
|
LABEL="alsa_restore_go"
|
||||||
TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{number}"
|
TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl restore $attr{device/number}"
|
||||||
TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{number}"
|
TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl nrestore $attr{device/number}"
|
||||||
|
|
||||||
LABEL="alsa_restore_end"
|
LABEL="alsa_restore_end"
|
||||||
|
|
Loading…
Reference in a new issue