Ticket #320: 320.diff

File 320.diff, 1.5 KB (added by DJ Lucas, 20 years ago)

see last entry

  • connect/dhcp/bootscripts.xml

    diff -Naur BOOK/connect/dhcp/bootscripts.xml BOOK-dj/connect/dhcp/bootscripts.xml
    old new  
    5151echo "Bringing up the eth0 interface..."
    5252modprobe eth0
    5353loadproc $DHCP_PROG $DHCP_START
     54
    5455<command>EOF</command></userinput></screen>
    5556
    5657<para>Then the <filename>ifdown-eth0</filename> script:</para>
     
    6566echo "Bringing down the eth0 interface..."
    6667$DHCP_PROG $DHCP_STOP
    6768evaluate_retval
     69
     70<command>EOF</command></userinput></screen>
     71
     72<para>Next, we need to make corrections to the
     73<filename>/etc/hosts</filename> file.  Be sure to replace
     74<emphasis role="strong">hostname</emphasis> and
     75<emphasis role="strong">domain_name</emphasis> with apropriate values.</para>
     76
     77<screen><userinput><command>mv -f /etc/hosts /etc/hosts.bak &amp;&amp;
     78cat &gt; /etc/hosts &lt;&lt; "EOF" </command>
     79# Begin /etc/hosts
     80
     81127.0.0.1 &lt;<command>hostname</command>&gt; &lt;<command>hostname.domain_name</command>&gt; localhost localhost.localdomain
     82
     83# End /etc/hosts
    6884<command>EOF</command></userinput></screen>
    6985
    70 <para>Finally, we need to make these scripts executable:</para>
     86<para>Finally, we need to make the scripts executable:</para>
    7187
    7288<screen><userinput><command>chmod 755 /etc/sysconfig/network-devices/ifup-eth0 &amp;&amp;
    7389chmod 755 /etc/sysconfig/network-devices/ifdown-eth0</command></userinput></screen>