Changeset 7926

Show
Ignore:
Timestamp:
02/18/07 06:59:36 (1 year ago)
Author:
bryan
Message:

Fix part of #1963 (use ATTRS instead of SYSFS), add the note about the backslash at the end of each line back into the book, and add a reference to #1912 to the changelog entry from r7924.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BOOK/chapter01/changelog.xml

    r7924 r7926  
    3838 
    3939    <listitem> 
     40      <para>2007-02-18</para> 
     41      <itemizedlist> 
     42        <listitem> 
     43          <para>[bryan] - Fix obsolete syntax used in the example Udev rules 
     44          in section 7.12.2. Fixes the easy part of 
     45          <ulink url="&lfs-ticket-root;1963">#1963</ulink>. Also re-add the 
     46          note about the backslash at the end of the udev rule lines.</para> 
     47        </listitem> 
     48      </itemizedlist> 
     49    </listitem> 
     50 
     51    <listitem> 
    4052      <para>2007-02-17</para> 
    4153      <itemizedlist> 
     
    4355          <para>[bryan] - Use upstream's rule_generator rules exclusively for 
    4456          NIC naming, and generate the rules before configuring the network 
    45           script, so the user knows what NIC names to use.</para> 
     57          script, so the user knows what NIC names to use. Fixes the rest of 
     58          <ulink url="&lfs-ticket-root;1912">#1912</ulink>.</para> 
    4659        </listitem> 
    4760        <listitem> 
  • trunk/BOOK/chapter07/symlinks.xml

    r7924 r7926  
    123123<literal> 
    124124# Persistent symlinks for webcam and tuner 
    125 KERNEL=="video*", SYSFS{idProduct}=="1910", SYSFS{idVendor}=="0d81", \ 
     125KERNEL=="video*", ATTRS{idProduct}=="1910", ATTRS{idVendor}=="0d81", \ 
    126126    SYMLINK+="webcam" 
    127 KERNEL=="video*", SYSFS{device}=="0x036f", SYSFS{vendor}=="0x109e", \ 
     127KERNEL=="video*", ATTRS{device}=="0x036f", ATTRS{vendor}=="0x109e", \ 
    128128    SYMLINK+="tvtuner" 
    129129</literal> 
    130130EOF</userinput></screen> 
     131 
     132    <note> 
     133      <para>Be aware that Udev does not recognize the backslash for line 
     134      continuation.  This example works properly because both the backslash 
     135      and newline are ignored by the shell.  This makes the shell send each 
     136      rule to cat on only one line.  (The shell ignores this sequence because 
     137      the EOF string used in the here-document redirection is not enclosed in 
     138      either double or single quotes.  For more details, see the bash(1) 
     139      manpage, and search it for "Here Documents".)</para>  
     140      <para>If modifying Udev rules with an editor, be sure to leave each 
     141      rule on one physical line.</para> 
     142    </note> 
    131143 
    132144    <para>The result is that <filename>/dev/video0</filename> and