udev_test_alsactl.patch (1157B)
1 Author: Jordi Mallach <jordi@debian.org> 2 Description: Test for availability of alsactl before restoring. 3 Add a test to the udev ruleset to check for /usr/sbin/alsactl, as it might 4 not be available at boot time on separate /usr systems. 5 Forwarded: no 6 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713916 7 8 Index: alsa-utils-1.1.3/alsactl/90-alsa-restore.rules.in 9 =================================================================== 10 --- alsa-utils-1.1.3.orig/alsactl/90-alsa-restore.rules.in 11 +++ alsa-utils-1.1.3/alsactl/90-alsa-restore.rules.in 12 @@ -2,7 +2,7 @@ ACTION=="add", SUBSYSTEM=="sound", KERNE 13 GOTO="alsa_restore_end" 14 15 LABEL="alsa_restore_go" 16 -TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl -E HOME=@alsactlhome@ restore $attr{device/number}" 17 -TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl -E HOME=@alsactlhome@ nrestore $attr{device/number}" 18 +TEST!="@daemonswitch@", TEST=="/usr/sbin/alsactl", RUN+="@sbindir@/alsactl -E HOME=@alsactlhome@ restore $attr{device/number}" 19 +TEST=="@daemonswitch@", TEST=="/usr/sbin/alsactl", RUN+="@sbindir@/alsactl -E HOME=@alsactlhome@ nrestore $attr{device/number}" 20 21 LABEL="alsa_restore_end"