M.Canales.es 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.
>>
>> http://www.linuxfromscratch.org/blfs/view/cvs/multimedia/alsa-utils.html
>>
>> Does anyone know how we can go about shortening this line?
> 
>  Try this: 
> 
> cat > /etc/udev/rules.d/15-alsa.rules << EOF
> # 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"
> KERNEL="hw[CD0-9]*",      NAME="snd/%k"
> KERNEL="pcm[CD0-9cp]*",   NAME="snd/%k"
> KERNEL="midiC[D0-9]*",    NAME="snd/%k"
> KERNEL="timer",           NAME="snd/%k"
> KERNEL="seq",             NAME="snd/%k"
> EOF
> 
> That should to work, except for cat commands where $SOME_ENVAR, if any, must 
> be preserved.

Gotcha.  Let cat interpret the newline.  Thanks.

  -- Bruce


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to