On 5/5/06, M.Canales.es <[EMAIL PROTECTED]> wrote:
El Viernes, 5 de Mayo de 2006 19:01, Bruce Dubbs escribió:
> In the alsa utilities section, we have a long line in the instructions
> about creating a udev rule. Evidently, udev does not support the common
> practice of allowing a backslash/newline combination for extending a
> logical line to a new physical line.
# When a sound device is detected, restore the volume settings
KERNEL=="controlC[0-9]*", ACTION=="add", NAME="snd/%k", \
RUN="/etc/udev/scripts/alsa-restore %n"
Indent works fine, too. Here's how the alsa rules looks on my system:
# Give the audio group ownership of sound devices
SUBSYSTEM=="sound", GROUP="audio"
SUBSYSTEM=="snd", GROUP="audio"
# ALSA Devices
# When a sound device is detected, restore the volume settings
KERNEL=="controlC[0-9]*", ACTION=="add", NAME="snd/%k", \
RUN+="/etc/udev/scripts/alsa-restore %n"
BTW, the other KERNEL rules should be unnecessary now since they're
handled in the default LFS rules since udev_update was merged.
Actually, so are the controlC[0-9]* nodes. So, you could drop the
NAME="snd/%k" part, too.
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page