diff options
-rw-r--r-- | appendices/udev-rules.xml | 30 | ||||
-rw-r--r-- | general.ent | 4 | ||||
-rw-r--r-- | index.xml | 1 | ||||
-rw-r--r-- | process-scripts.sh | 12 |
4 files changed, 44 insertions, 3 deletions
diff --git a/appendices/udev-rules.xml b/appendices/udev-rules.xml new file mode 100644 index 000000000..362732fb9 --- /dev/null +++ b/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> diff --git a/general.ent b/general.ent index d9a37527a..499f1ad41 100644 --- a/general.ent +++ b/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–2008"> <!ENTITY milestone "7.0"> <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> @@ -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> diff --git a/process-scripts.sh b/process-scripts.sh index 30fdd7e00..675b7f4f9 100644 --- a/process-scripts.sh +++ b/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/\&/\&\;/g' -e 's/</\<\;/g' -e 's/>/\>\;/g' \ + -e "s/'/\&apos\;/g" -e 's/"/\"\;/g' -e 's/\t/ /g' \ + $s > appendices/${script}.script +done |