Dana 1.5.2013 19:15, xinglp je napisao:
>
> I have /lib/udev/rules.d/90-alsa-restore.rules:
>
> ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*",
> KERNELS!="card*", GOTO="alsa_restore_go"
> GOTO="alsa_restore_end"
>
> LABEL="alsa_restore_go"
> TEST!="/etc/alsa/state-daemon.conf", RUN+="/usr/sbin/alsactl restore
> $attr{number}"
> TEST=="/etc/alsa/state-daemon.conf", RUN+="/usr/sbin/alsactl nrestore
> $attr{number}"
>
> LABEL="alsa_restore_end"
>
> But I don't have /etc/alsa/state-daemon.conf.
>You don't need to have it. There are two tests - if it exists, and if it doesn't exist. The first one has !=, which means "NOT" - in this case TEST NOT EXISTS /etc/alsa/state-daemon.conf and if TRUE, run alsactl restore blabla ... -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
