Changeset b5ea349


Ignore:
Timestamp:
03/21/2004 07:27:22 PM (18 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
10.0, 10.1, 11.0, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, krejzi/svn, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, v5_1, v5_1-pre1, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
cc265e51
Parents:
f53f1b3c
Message:

The march to lfs-bootscripts begins

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1906 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
11 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • appendices/appendices.ent

    rf53f1b3c rb5ea349  
    11<!ENTITY appendices SYSTEM "appendices.xml">
    2 
    3 <!-- Symlink appendix -->
    4 
    5 <!ENTITY appendices-symlinks SYSTEM "symlinks/symlinks.xml">
    6 <!ENTITY appendices-symlinks-rc0 SYSTEM "symlinks/rc0.xml">
    7 <!ENTITY appendices-symlinks-rc1 SYSTEM "symlinks/rc1.xml">
    8 <!ENTITY appendices-symlinks-rc2 SYSTEM "symlinks/rc2.xml">
    9 <!ENTITY appendices-symlinks-rc3 SYSTEM "symlinks/rc3.xml">
    10 <!ENTITY appendices-symlinks-rc4 SYSTEM "symlinks/rc4.xml">
    11 <!ENTITY appendices-symlinks-rc5 SYSTEM "symlinks/rc5.xml">
    12 <!ENTITY appendices-symlinks-rc6 SYSTEM "symlinks/rc6.xml">
    132
    143<!-- Deprecated package appendix -->
     
    165<!ENTITY appendices-old SYSTEM "old/old.xml">
    176
    18 <!-- Generic instructions -->
    19 
    20 <!ENTITY appendices-generic SYSTEM "generic/generic.xml">
    21 
    227<!-- Glossary -->
    238
  • basicnet/netprogs/ncpfs/ncpfs-config.xml

    rf53f1b3c rb5ea349  
    4242
    4343<para>If you need to set up the <acronym>IPX</acronym> protocol at boot,
    44 you can create the following scripts.  These scripts assume <acronym>IPX</acronym>
    45 will be set up on <emphasis role="strong">eth0</emphasis>
    46 and the network frame type is 802.2.  You should confirm that these
    47 are the correct settings and adjust as necessary.</para>
     44you can install the
     45<filename>/etc/sysconfig/network-devices/services/ipx</filename>
     46network service script included with the
     47<xref linkend="intro-important-bootscripts"/> package.</para>
    4848
    49 <screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifup-ipx0 &lt;&lt; "EOF"</command>
    50 #!/bin/sh
    51 # Begin /etc/sysconfig/network-devices/ifup-ipx0
     49<screen><userinput><command>make install-service-ipx</command></userinput></screen>
    5250
    53 . /etc/sysconfig/rc || exit
    54 . $rc_functions || exit
     51<para>Next install the configurations script,
     52<filename>ifconfig.ipx0</filename>.  The configuration assumes
     53<acronym>IPX</acronym> will be set up on
     54<emphasis role="strong">eth0</emphasis> 
     55and the network frame type is 802.2.  You should confirm that these are
     56the correct settings and adjust as necessary.</para>
    5557
    56 echo "Setting up the IPX protocol on eth0..."
    57 /bin/ipx_interface add eth0 802.2 &amp;&amp;
    58 /bin/ipx_configure --auto_interface=on --auto_primary=on
    59 evaluate_retval
     58<para><emphasis>Note</emphasis>: This will overwrite any existing file.</para>
    6059
    61 # End /etc/sysconfig/network-devices/ifup-ipx0
    62 <command>EOF
    63 cat &gt; /etc/sysconfig/network-devices/ifdown-ipx0 &lt;&lt; "EOF"</command>
    64 #!/bin/sh
    65 # Begin /etc/sysconfig/network-devices/ifdown-ipx0
    66 
    67 . /etc/sysconfig/rc || exit
    68 . $rc_functions || exit
    69 
    70 echo "Stopping IPX on the eth0 interface..."
    71 /bin/ipx_configure --auto_interface=off --auto_primary=off &amp;&amp;
    72 /bin/ipx_interface del eth0 802.2
    73 evaluate_retval
    74 
    75 # End /etc/sysconfig/network-devices/ifdown-ipx0
    76 <command>EOF
    77 echo "ONBOOT=yes" &gt; /etc/sysconfig/network-devices/ifconfig.ipx0
    78 chmod 755 /etc/sysconfig/network-devices/ifup-ipx0
    79 chmod 755 /etc/sysconfig/network-devices/ifdown-ipx0</command></userinput></screen>
     60<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.ipx0 &lt;&lt; "EOF"</command>
     61ONBOOT=yes
     62SERVICE=ipx
     63IPXDEV=eth0
     64FRAME=802.2
     65<command>EOF</command></userinput></screen>
    8066
    8167</sect3>
  • book/book.ent

    rf53f1b3c rb5ea349  
    2323<!ENTITY hints-root "http://www.linuxfromscratch.org/hints">
    2424<!ENTITY patch-root "http://www.linuxfromscratch.org/patches/blfs/&blfs-version;">
     25<!ENTITY lfs-root "http://www.linuxfromscratch.org/lfs/view/&blfs-version;">
    2526<!ENTITY nbsp " ">
    2627<!ENTITY publisher "Unknown">
  • book/book.xml

    rf53f1b3c rb5ea349  
    2222
    2323<!-- Appendices -->
    24 &appendices;
    2524&glossary;
  • connect/dhcp/dhcp-client.xml

    rf53f1b3c rb5ea349  
    1616(<command>dhclient</command>).</para>
    1717
    18 <para>To configure <command>dhclient</command>, you need to create two files,
    19 <filename>/etc/sysconfig/network-devices/ifconfig.eth0</filename> and
    20 <filename>/etc/dhclient.conf</filename>.</para>
     18<para>To configure <command>dhclient</command>, we need to first install
     19the network service script,
     20<filename>/etc/sysconfig/network-devices/services/dhclient</filename>
     21included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    2122
    22 <para>First, create the <filename>ifconfig.eth0</filename>
    23 file with the following commands (note that this will overwrite any
    24 existing file):</para>
     23<screen><userinput><command>make install-service-dhclient</command></userinput></screen>
    2524
    26 <screen><userinput><command>cd /etc/sysconfig/network-devices &amp;&amp;
    27 cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
     25<para>Next, create the <filename>ifconfig.eth0</filename>
     26file with the following commands.  Adjust as necessary for additional
     27interfaces.</para>
     28
     29<para><emphasis>Note</emphasis>: this will overwrite any existing file.</para>
     30
     31<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
    2832ONBOOT=yes
    29 DHCP_PROG=/sbin/dhclient
    30 DHCP_START=&lt;appropriate start parameters&gt;
    31 DHCP_STOP=-r
     33DHCP_START="&lt;place appropriate start parameters here&gt;"
     34DHCP_STOP="-r &lt;add additional stop parameters here&gt;"
     35SERVICE=dhclient
    3236<command>EOF</command></userinput></screen>
    3337
     
    3640values, examine the man page for <command>dhclient</command>.</para>
    3741
    38 <para>Next, you should then create
    39 the <filename>/etc/dhclient.conf</filename> using the following command:</para>
     42<para>Finally, you should then create
     43the <filename>/etc/dhclient.conf</filename> using the following
     44commands.  Append to the file if you have more than one interface:</para>
    4045
    4146<screen><userinput><command>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</command>
  • connect/dhcp/dhcp.xml

    rf53f1b3c rb5ea349  
    1212<para>We currently provide installation instructions for two
    1313<acronym>DHCP</acronym> clients, <command>dhclient</command> (from the
    14 <application>dhcp</application> package) and <command>dhcpcd</command>.  We
    15 begin with a page which shows how to alter the <acronym>LFS</acronym>
    16 boot scripts for generic <acronym>DHCP</acronym> support. We then present the
    17 two sets of installation instructions which also discuss
    18 how to create an appropriate configuration file to work with the
    19 <acronym>DHCP</acronym> client of your choice.</para>
     14<application>dhcp</application> package) and <command>dhcpcd</command>.
     15We present both sets of installation instructions which also discuss how
     16to create an appropriate service script to work with the
     17<command>network</command> bootscript and the <acronym>DHCP</acronym>
     18client of your choice.</para>
    2019
    21 &connect-dhcp-bootscripts;
    2220&connect-dhcp-client;
    2321&dhcpcd;
  • connect/dhcp/dhcpcd/dhcpcd-config.xml

    rf53f1b3c rb5ea349  
    77<sect3><title>Configuration Information</title>
    88
    9 <para>To configure <command>dhcpcd</command>, create the <filename>
    10 ifconfig.eth0</filename> file with the following commands (note that this
    11 will overwrite any existing file):</para>
     9<para>To configure <command>dhcpcd</command>, we need to first install
     10the network service script,
     11<filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
     12included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    1213
    13 <screen><userinput><command>cd /etc/sysconfig/network-devices &amp;&amp;
    14 cat &gt; ifconfig.eth0 &lt;&lt; "EOF"</command>
     14<screen><userinput><command>make install-service-dhcpcd</command></userinput></screen>
     15
     16<para>Now create the <filename>ifconfig.eth0</filename> configuration
     17file using the following commands.  Adjust appropriatly for additional
     18interfaces.</para>
     19
     20<para><emphasis>Note:</emphasis> This will overwrite any existing file.</para>
     21
     22<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
    1523ONBOOT=yes
    16 DHCP_PROG=/sbin/dhcpcd
    17 DHCP_START=&lt;appropriate start parameters&gt;
    18 DHCP_STOP=-k
     24DHCP_START="&lt;insert appropriate start options here&gt;"
     25DHCP_STOP="-k &lt;insert other stop options here&gt;"
     26SERVICE=dhcpcd
    1927<command>EOF</command></userinput></screen>
    2028
  • connect/other/pppoe/pppoe-config.xml

    rf53f1b3c rb5ea349  
    2626<command>adsl-start</command> script.</para>
    2727
    28 <para>Use the following commands to create the
    29 <emphasis>optional</emphasis> <filename>adsl</filename> bootscript:</para>
     28<para><emphasis>Optionaly</emphasis> install the
     29<filename>/etc/sysconfig/network-devices/services/pppoe</filename> service
     30script included with the <xref linkend="intro-important-bootscripts"/>
     31package.</para>
    3032
    31 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/adsl &lt;&lt; "EOF"</command>
    32 #!/bin/sh
    33 # Begin $rc_base/init.d/adsl
     33<screen><userinput><command>make install-service-pppoe</command></userinput></screen>
    3434
    35 # Based on sysklogd script from LFS-3.1 and earlier.
    36 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    37 # adsl script written by DJ Lucas  - dj@lucasit.com
     35<para>Now create the config file for use with the <filename>pppoe</filename>
     36service script:</para>
    3837
    39 . /etc/sysconfig/rc
    40 . $rc_functions
    41 
    42 case "$1" in
    43         start)
    44                 echo "Bringing up the ADSL interface..."
    45                 /usr/sbin/adsl-start
    46                 evaluate_retval
    47                 ;;
    48 
    49         stop)
    50                 echo "Bringing down the ADSL interface..."
    51                 /usr/sbin/adsl-stop
    52                 evaluate_retval
    53                 ;;
    54 
    55         restart)
    56                 $0 stop
    57                 sleep 1
    58                 $0 start
    59                 ;;
    60 
    61         status)
    62                 /usr/sbin/adsl-status
    63                 ;;
    64 
    65         *)
    66                 echo "Usage: $0 {start|stop|restart|status}"
    67                 exit 1
    68                 ;;
    69 esac
    70 
    71 # End $rc_base/init.d/adsl
    72 <command>EOF
    73 chmod 755 /etc/rc.d/init.d/adsl</command></userinput></screen>
    74 
    75 <para>Now create the necessary symlinks:</para>
    76 <screen><userinput><command>ln -sf ../init.d/adsl /etc/rc.d/rc0.d/K49adsl &amp;&amp;
    77 ln -sf ../init.d/adsl /etc/rc.d/rc1.d/K49adsl &amp;&amp;
    78 ln -sf ../init.d/adsl /etc/rc.d/rc2.d/K49adsl &amp;&amp;
    79 ln -sf ../init.d/adsl /etc/rc.d/rc3.d/S24adsl &amp;&amp;
    80 ln -sf ../init.d/adsl /etc/rc.d/rc4.d/S24adsl &amp;&amp;
    81 ln -sf ../init.d/adsl /etc/rc.d/rc5.d/S24adsl &amp;&amp;
    82 ln -sf ../init.d/adsl /etc/rc.d/rc6.d/K49adsl</command></userinput></screen>
     38<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.pppoe &lt;&lt; "EOF"</command>
     39ONBOOT=yes
     40SERVICE=pppoe
     41<command>EOF</command></userinput></screen>
    8342
    8443<para>Also, If you had previously configured the network interface that will now
    8544use <acronym>PPPoE</acronym>, you should remove the interface configuration
    8645files for that interface:
    87 <filename>/etc/sysconfig/network-devices/if{up,down,config}-ehtx
     46<filename>/etc/sysconfig/network-devices/ifconfig.eth&lt;X&gt;
    8847</filename>.</para>
    8948
  • introduction/important/beyond.xml

    rf53f1b3c rb5ea349  
    99</para>
    1010
    11 <para>If you are installing a package in a non-standard prefix, <xref
    12 linkend="appendices-generic"/> checklist will be helpful if the
    13 package does not work as expected.</para>
     11<para>When you want to install a package to a location other than
     12<filename class='directory'>/</filename>, or <filename class='directory'>/usr</filename>, you are installing
     13outside the default environment settings on most machines.  The following
     14examples should assist you in determining how to correct this situation.
     15The examples cover the complete range of settings that may need
     16updating, but they are not all needed in every situation.</para>
     17
     18<itemizedlist>
     19<listitem><para>Expand the <envar>PATH</envar> to include
     20<filename class='directory'>$PREFIX/bin</filename>.</para></listitem>
     21<listitem><para>Expand the <envar>PATH</envar> for root to include
     22<filename class='directory'>$PREFIX/sbin</filename>.</para></listitem>
     23<listitem><para>Add <filename class='directory'>$PREFIX/lib</filename>
     24to <filename>/etc/ld.so.conf</filename> or expand
     25<envar>LD_LIBRARY_PATH</envar> to include it. Before using the latter option,
     26check out <ulink url="http://www.visi.com/~barr/ldpath.html"/>. If you
     27modify <filename>/etc/ld.so.conf</filename> remember to update
     28<filename>/etc/ld.so.cache</filename> by executing <command>ldconfig</command>.</para></listitem>
     29<listitem><para>Add <filename class='directory'>$PREFIX/man</filename>
     30to <filename>/etc/man.conf</filename> or expand <envar>MANPATH</envar>.</para></listitem>
     31<listitem><para>Add <filename class='directory'>$PREFIX/info</filename>
     32to <envar>INFOPATH</envar>.</para></listitem>
     33<listitem><para>Add <filename
     34class='directory'>$PREFIX/lib/pkgconfig</filename> to
     35<envar>PKG_CONFIG_PATH</envar>.</para></listitem>
     36<listitem><para>Add <filename
     37class='directory'>$PREFIX/include</filename> to <envar>CPPFLAGS</envar> when compiling packages
     38that depend on the package you installed.</para></listitem>
     39</itemizedlist>
    1440
    1541<para>If you are in search of a package that is not in the book, the following
  • introduction/important/bootscripts.xml

    rf53f1b3c rb5ea349  
    1 <sect1 id="intro-important-bootscripts">
     1<sect1 id="intro-important-bootscripts" xreflabel="lfs-bootscripts">
    22<?dbhtml filename="bootscripts.html" dir="introduction"?>
    3 <title>Using <acronym>BLFS</acronym> Boot Scripts</title>
     3<title><acronym>LFS</acronym> Boot Scripts</title>
    44
    5 <para>The scripts included for packages such as <xref linkend="gpm"/>
    6 and <xref linkend="alsa"/> are based around the template supplied with
    7 the lfs-bootscripts package from version 3.2 and later of the <acronym>
    8 LFS</acronym> book. Note that this is lfs-bootscripts-1.6 and later (the old
    9 numbering changed as of <acronym>LFS</acronym>-3.2).  The scripts won't work
    10 with versions of <acronym>LFS</acronym> before 3.2 because of a change in their
    11 organization with the new scripts.  However, it should be trivial to adapt the
    12 scripts if needed for older <acronym>LFS</acronym> versions.</para>
     5<para>The lfs-bootscripts package that was used in <acronym>LFS</acronym> also
     6contains bootscripts for <acronym>BLFS</acronym>.
     7The lfs-bootscripts package will be used throughout the rest of
     8the book for startup scripts.  It is recomended you keep the package
     9source directory around until completion of your
     10<acronym>BLFS</acronym> system.  When a script is requested from
     11lfs-bootscritps, simply change to the directory and execute the given
     12'make install-&lt;init-script&gt;' command.</para>
     13
     14<para>If you are installing <acronym>BLFS</acronym>
     15from an older version of LFS, see the INSTALL included in the package for
     16upgrade instructions.</para>
     17
     18<para>Refer to <ulink url="&lfs-root;/chapter07/bootscripts.html"/> for more
     19information on the lfs-bootscripts package.</para>
    1320
    1421</sect1>
  • introduction/important/pkgmgt.xml

    rf53f1b3c rb5ea349  
    9797
    9898<para>The environment variables such as those
    99 mentioned in <xref linkend="appendices-generic"/> need to be expanded to
     99mentioned in <xref linkend="intro-important-beyond"/> need to be expanded to
    100100include <filename>/usr/pkg/foo</filename>. For more than a few packages,
    101101this scheme becomes unmanagable.</para>
  • introduction/welcome/askhelp.xml

    rf53f1b3c rb5ea349  
    4040need to expand your environment variables for each package placed there (e.g.
    4141PATH=$PATH:/opt/kde/bin).  In some cases, the package will walk you
    42 through the changes, but some will not.  <xref linkend="appendices-generic"/>
     42through the changes, but some will not.  <xref linkend="intro-important-beyond"/>
    4343is available to help you check.</para></listitem>
    4444</itemizedlist></sect2>
  • introduction/welcome/credits.xml

    rf53f1b3c rb5ea349  
    256256<listitem><para><emphasis>Ian Chilton</emphasis> for writing the nfs hint.</para></listitem>
    257257
     258<listitem><para><emphasis>Nathan Coulson</emphasis>, <emphasis>DJ Lucas</emphasis>
     259and <emphasis>Zack Winkles</emphasis> for reworking the bootscripts used throughout
     260the book.</para></listitem>
     261
    258262</itemizedlist>
    259263</sect2>
  • introduction/welcome/which.xml

    rf53f1b3c rb5ea349  
    6969even those who are creating mainly server systems will find it useful.</para>
    7070
    71 <para>Finally, the <xref linkend="appendices"/> contain various pieces of
    72 useful information which you may need to use as a reference.</para>
    73 
    7471<para>We hope you enjoy using <acronym>BLFS</acronym> and find it useful.</para>
    7572
  • preface/whoread.xml

    rf53f1b3c rb5ea349  
    1111found <acronym>LFS</acronym> useful, you should also like this!</para>
    1212
     13<para>Since Release 5.0, the <acronym>BLFS</acronym> book version matches
     14the <acronym>LFS</acronym> book version. This book may be incompatible with
     15a previous or latter release of the <acronym>LFS</acronym> book.</para>
     16
    1317</sect1>
    1418
Note: See TracChangeset for help on using the changeset viewer.