Procházet zdrojové kódy

Add udev rules as an appendix

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8549 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs před 16 roky
rodič
revize
12bc33686f
4 změnil soubory, kde provedl 44 přidání a 3 odebrání
  1. 30 0
      appendices/udev-rules.xml
  2. 2 2
      general.ent
  3. 1 0
      index.xml
  4. 11 1
      process-scripts.sh

+ 30 - 0
appendices/udev-rules.xml

@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY lfs-rules   SYSTEM "55-lfs.rules.script"> 
+  <!ENTITY cdrom-rules SYSTEM "61-cdrom.rules.script"> 
+  %general-entities;
+]>
+
+<appendix id="rules" xreflabel="Appendix E">
+  <?dbhtml dir="scripts"?>
+  <?dbhtml filename="udev-rules.html"?>
+
+  <title>Udev configuration rules</title>
+
+	<para>The rules from &udev-config;.tar.bz2 in this appendix are listed for
+	convenience.  Installation is normally done via instructions in <xref
+	linkend='ch-system-udev'/>.  </para>
+
+  <sect1 id="lfsrules" role="wrap">
+    <title>55-lfs.rules</title>
+    <screen>&lfs-rules;</screen> 
+  </sect1>
+
+  <sect1 id="cdromrules" role="wrap">
+    <title>61-cdrom.rules</title>
+    <screen>&cdrom-rules;</screen> 
+  </sect1>
+
+</appendix>

+ 2 - 2
general.ent

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "SVN-20080603">
-<!ENTITY releasedate "June 3, 2008">
+<!ENTITY version "SVN-20080604">
+<!ENTITY releasedate "June 4, 2008">
 <!ENTITY copyrightdate "1999&ndash;2008">
 <!ENTITY milestone "7.0">
 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->

+ 1 - 0
index.xml

@@ -42,6 +42,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="appendices/acknowledgments.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="appendices/dependencies.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="appendices/scripts.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="appendices/udev-rules.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="appendices/license.xml"/>
 </part>
 

+ 11 - 1
process-scripts.sh

@@ -1,11 +1,12 @@
 #!/bin/sh
 
+# Boot scripts
 for s in bootscripts/lfs/init.d/*                    \
          bootscripts/lfs/sysconfig/*                 \
          bootscripts/lfs/sysconfig/network-devices/* \
          bootscripts/lfs/sysconfig/network-devices/services/*
 do
-  script=`basename $s`
+  script=$(basename $s)
   
   # Skip directories
   [ $script == 'network-devices' ] && continue
@@ -20,3 +21,12 @@ do
        $s > appendices/${script}.script 
 done
 
+# Udev rules
+for s in udev-config/*.rules
+do
+  script=$(basename $s)
+
+  sed  -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g'   -e 's/>/\&gt\;/g' \
+       -e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/    /g'  \
+       $s > appendices/${script}.script 
+done