mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
Add udev rules as an appendix
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8549 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
1c4800743d
commit
12bc33686f
30
appendices/udev-rules.xml
Normal file
30
appendices/udev-rules.xml
Normal file
@ -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>
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user